import { Check, CircleAlert, CircleX, Info } from "lucide-react"; import { cn } from "@/lib/utils"; export type ToastType = "success" | "info" | "warning" | "error"; const toastStyles: Record = { success: "border-emerald-950 bg-emerald-950/70 text-emerald-300", info: "border-blue-950 bg-blue-950/70 text-blue-300", warning: "border-yellow-950 bg-yellow-950/70 text-yellow-200", error: "border-red-950 bg-red-950/70 text-red-200", }; const toastIcons: Record = { success: Check, info: Info, warning: CircleAlert, error: CircleX, }; export function FakeToast({ type = "success", children, onIconClick, }: { type?: ToastType; children: React.ReactNode; onIconClick?: () => void; }) { const Icon = toastIcons[type]; return (
{onIconClick ? ( ) : (
); }