import React from 'react'; import { AlertProps } from '../../Alert'; export interface ToastOptions { actionContent?: React.ReactNode; aspectSize?: AlertProps['aspectSize']; duration?: number | 'always'; key: string; hasIcon?: boolean; hasCloseBtn?: boolean; onClose?: () => void; message: string; status?: AlertProps['status']; } export interface ToastProps extends AlertProps { /** * The toast data given by the provider */ readonly toastOptions: ToastOptions; /** * The toast visibility status. It should be controlled from the provider. */ readonly visibleStatus: 'open' | 'closing'; } export interface StyledToastProps extends AlertProps { }