15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
import { AlertColor } from '@mui/material'
|
|
import { atom } from 'recoil'
|
|
|
|
export type Toast = {
|
|
open: boolean,
|
|
message: string
|
|
autoClose: boolean
|
|
createdAt: number,
|
|
severity?: AlertColor
|
|
}
|
|
|
|
export const toastListState = atom<Toast[]>({
|
|
key: 'toastListState',
|
|
default: [],
|
|
}) |