import { atom } from 'jotai' import { atomWithStorage } from 'jotai/utils' import { SettingScreen } from '@/screens/Settings' export const selectedSettingAtom = atom('My Models') export const janSettingScreenAtom = atom([]) export const THEME = 'themeAppearance' export const REDUCE_TRANSPARENT = 'reduceTransparent' export const SPELL_CHECKING = 'spellChecking' export const themesOptionsAtom = atom<{ name: string; value: string }[]>([]) export const janThemesPathAtom = atom(undefined) export const selectedThemeIdAtom = atomWithStorage(THEME, '') export const themeDataAtom = atom(undefined) export const reduceTransparentAtom = atomWithStorage( REDUCE_TRANSPARENT, false ) export const spellCheckAtom = atomWithStorage(SPELL_CHECKING, true)