import { useToast } from "@/hooks/use-toast-robust";
import { X, CheckCircle, AlertCircle, XCircle } from "lucide-react";
export function ToasterRobust() {
const { toasts, dismiss } = useToast();
if (toasts.length === 0) return null;
return (
{toasts.map((toast) => {
const variants = {
default: {
container: "border border-blue-200 bg-blue-50 text-blue-900",
icon:
},
success: {
container: "border border-green-200 bg-green-50 text-green-900",
icon:
},
destructive: {
container: "border border-red-200 bg-red-50 text-red-900",
icon:
}
};
const variant = variants[toast.variant || "default"];
return (
{variant.icon}
{toast.title && (
{toast.title}
)}
{toast.description && (
{toast.description}
)}
);
})}
);
}