import React from 'react' import { X } from 'lucide-react' import { useToastStore } from '../store/useToastStore' // the reference builder toaster (components/ui/toast.jsx): bottom-centre, dark, status dot, title + optional description. const DOT = { success: 'bg-emerald-400', error: 'bg-rose-400', info: 'bg-sky-400', warning: 'bg-amber-400', } export function ToastContainer() { const toasts = useToastStore((state) => state.toasts) const removeToast = useToastStore((state) => state.removeToast) if (toasts.length === 0) return null const t = toasts[toasts.length - 1] return (
) }