mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-28 05:14:08 +01:00
fix build client package
This commit is contained in:
parent
9f270127d3
commit
0b7dd55797
22 changed files with 148 additions and 565 deletions
20
packages/client/src/store.ts
Normal file
20
packages/client/src/store.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue