export interface IDxToast extends IEventHandler { id: string; icon?: React.ReactNode; title: string; description?: string; duration?: number; type?: IToastItemType; isEnableManualClose?: boolean; align?: 'center' | 'left'; } export interface IEventHandler { onUndo?: () => void; onConfirm?: () => void; onCloseAfter?: () => void; } export interface IAddToastItem { type?: IToastItemType; title: string; description?: string; handlers?: IEventHandler; } export type IToastItemType = 'general' | 'positive' | 'negative';