LibreChat/client/src/store/toast.ts

14 lines
280 B
TypeScript

import { atom } from 'recoil';
import { NotificationSeverity } from '~/common';
const toastState = atom({
key: 'toastState',
default: {
open: false,
message: '',
severity: NotificationSeverity.SUCCESS,
showIcon: true,
},
});
export default { toastState };