Files
yt-dlp-webui/frontend/src/atoms/toast.ts
2023-10-24 14:45:55 +02:00

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: [],
})