import { atom } from 'jotai'; import { NotificationSeverity } from '~/common'; export const langAtom = atom('en'); export const chatDirectionAtom = atom('ltr'); export const fontSizeAtom = atom('text-base'); export type ToastState = { open: boolean; message: string; severity: NotificationSeverity; showIcon: boolean; }; export const toastState = atom({ open: false, message: '', severity: NotificationSeverity.SUCCESS, showIcon: true, });