import React from 'react' import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast' import { useToast } from '@/lib/hooks/useToast' export function Toaster () { const { toasts } = useToast() return ( {toasts.map(function ({ id, title, description, action, ...props }) { return (
{title && {title}} {description && ( {description} )}
{action}
) })}
) }