"use client" import * as React from "react" import { X } from "lucide-react" import { cn } from "@/lib/utils" interface ToastProps extends React.HTMLAttributes { variant?: "default" | "destructive" | "success" onDismiss?: () => void title?: string description?: string action?: React.ReactNode } export const ToastProvider = React.Fragment export function Toast({ className, variant = "default", onDismiss, title, description, action, ...props }: ToastProps) { const variantStyles = { default: "bg-background text-foreground", destructive: "bg-destructive text-destructive-foreground", success: "bg-green-500 text-white" } return (
{title &&

{title}

} {description &&

{description}

}
{action}
) } export function ToastViewport() { return (
) }