import { AlertCircle, CheckCircle2, Info } from "lucide-react"; import { cn } from "../../lib/utils"; import { useToastState } from "./use-toast"; export function Toaster() { const toasts = useToastState(); if (toasts.length === 0) return null; return (
{toasts.map((t) => (
{t.type === "success" && ( )} {t.type === "error" && } {t.type === "info" && }

{t.message}

))}
); }