UNPKG

solvice-vrp-components

Version:

React components library for visualizing VRP problems in Mintlify documentation

19 lines (18 loc) 647 B
export interface ToastProps { message: string; type?: 'success' | 'error' | 'info'; duration?: number; onClose?: () => void; className?: string; } export declare function Toast({ message, type, duration, onClose, className }: ToastProps): import("react/jsx-runtime").JSX.Element | null; export interface ToastManagerProps { toasts: Array<{ id: string; message: string; type?: 'success' | 'error' | 'info'; duration?: number; }>; onRemove: (id: string) => void; } export declare function ToastManager({ toasts, onRemove }: ToastManagerProps): import("react/jsx-runtime").JSX.Element;