()
| 4 | import { useToast } from "@/components/ui/use-toast" |
| 5 | |
| 6 | export function Toaster() { |
| 7 | const { toasts } = useToast() |
| 8 | |
| 9 | return ( |
| 10 | <ToastProvider> |
| 11 | {toasts.map(({ id, title, description, action, ...props }) => ( |
| 12 | <Toast key={id} {...props}> |
| 13 | <div className="grid gap-1"> |
| 14 | {title && <ToastTitle>{title}</ToastTitle>} |
| 15 | {description && <ToastDescription>{description}</ToastDescription>} |
| 16 | </div> |
| 17 | {action} |
| 18 | <ToastClose /> |
| 19 | </Toast> |
| 20 | ))} |
| 21 | <ToastViewport /> |
| 22 | </ToastProvider> |
| 23 | ) |
| 24 | } |
nothing calls this directly
no test coverage detected