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