import * as React from "react"; import { useToastState } from "./use-toast"; import { CheckCircle2, AlertCircle, Info, X } from "lucide-react"; import { cn } from "../../lib/utils"; 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}

))}
); }