import type { Toast as ToastType } from '../hooks/useToast'; const TYPE_STYLES: Record = { success: 'bg-emerald-500', error: 'bg-red-500', warning: 'bg-amber-500', info: 'bg-blue-500', }; interface Props { toasts: ToastType[]; onRemove: (id: number) => void; } export default function ToastContainer({ toasts, onRemove }: Props) { if (toasts.length === 0) return null; return (
{toasts.map((toast) => (
{toast.message}
))}
); }