LibreChat/packages/client/src/store.ts
2025-07-26 01:13:50 +02:00

20 lines
495 B
TypeScript

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