import toast from 'react-hot-toast' import { XIcon } from 'lucide-react' import { twMerge } from 'tailwind-merge' type Props = { title?: string description?: string type?: 'default' | 'error' | 'success' } export function toaster(props: Props) { const { title, description, type = 'default' } = props return toast.custom( (t) => { return (

{title}

{description}

toast.dismiss(t.id)} />
) }, { id: 'toast', duration: 3000 } ) }