mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-30 07:08:50 +01:00
20 lines
495 B
TypeScript
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,
|
|
});
|