jan/web/app/_helpers/JotaiWrapper.tsx
2023-10-20 11:29:10 +07:00

22 lines
479 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 appDownloadProgress = atom<number>(-1)
export const searchingModelText = atom<string>('')
export const searchAtom = atom<string>('')
export const modelSearchAtom = atom<string>('')