jan/web/app/_helpers/JotaiWrapper.tsx
James 6f50424917 allow user to query for HF models
Signed-off-by: James <james@jan.ai>
2023-10-06 16:46:47 +07:00

24 lines
542 B
TypeScript

"use client";
import { Provider, atom } from "jotai";
import { ReactNode } from "react";
type Props = {
children: ReactNode;
};
export default function JotaiWrapper({ children }: Props) {
return <Provider>{children}</Provider>;
}
export const currentPromptAtom = atom<string>("");
export const showingTyping = atom<boolean>(false);
export const appDownloadProgress = atom<number>(-1);
export const searchingModelText = atom<string>("");
export const searchAtom = atom<string>("");
export const modelSearchAtom = atom<string>("");