UNPKG

infinity-forge

Version:
13 lines (12 loc) 362 B
import { ReactNode } from 'react'; export type Toast = { uid?: string; message: string; Component?: (toast: Toast & { progressWidth: number; closeToast: VoidFunction; setToast: React.Dispatch<React.SetStateAction<Toast[]>>; }) => ReactNode; duration?: number; status?: 'success' | 'error' | 'info' | 'warning'; };