UNPKG

snack-alert

Version:

A simple React toast notification library with Tailwind CSS

20 lines 517 B
import { AlertType } from '../enums/provider'; interface AlertProps { show: boolean; message: string; type: AlertType; clearAlert: () => void; } interface ShowAlertParams { message: string; type?: AlertType; } interface AlertContextType { show: boolean; message: string; type: AlertType; showAlert: ({ message, type, }: ShowAlertParams) => void; clearAlert: () => void; } export type { AlertProps, AlertContextType, ShowAlertParams }; //# sourceMappingURL=provider.d.ts.map