jan/web/app/_helpers/JotaiWrapper.tsx
NamH 00c944c0b5
Add empty model conversation (#254)
* add empty conversation model selection

Signed-off-by: James <james@jan.ai>

* chore: using secondary button instead of sidebar button

Signed-off-by: James <james@jan.ai>

---------

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-10-02 19:36:10 -07:00

22 lines
492 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>("");