Files
kudinDmitriyUp 3b0558ebeb Initial commit
2026-04-29 11:03:35 +00:00

785 B

import { useToast } from "@/components/ui/use-toast"; import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, } from "@/components/ui/toast";

export function Toaster() { const { toasts } = useToast();

return ( {toasts.map(function ({ id, title, description, action, ...props }) { return ( <Toast key={id} {...props}>

{title && {title}} {description && ( {description} )}
{action} ); })} ); }