import { useToastStore } from '../../stores/toastStore'; import { X, CheckCircle, AlertCircle, Info } from 'lucide-react'; const icons = { success: CheckCircle, error: AlertCircle, info: Info, }; const styles = { success: 'bg-green-50 border-green-200 text-green-800', error: 'bg-red-50 border-red-200 text-red-800', info: 'bg-blue-50 border-blue-200 text-blue-800', }; export const ToastContainer = () => { const { toasts, removeToast } = useToastStore(); if (toasts.length === 0) return null; return (
{toast.message}