import React from 'react'
import { CheckCircle, XCircle, AlertTriangle, Info, X } from 'lucide-react'
import { useUIStore } from '../../store/uiStore'
const icons = {
success: ,
error: ,
warning: ,
info: ,
}
const styles = {
success: 'border-emerald-500/30 bg-emerald-500/10',
error: 'border-rose-500/30 bg-rose-500/10',
warning: 'border-amber-500/30 bg-amber-500/10',
info: 'border-blue-500/30 bg-blue-500/10',
}
export const ToastContainer: React.FC = () => {
const { toasts, removeToast } = useUIStore()
return (
{toasts.map(toast => (
{icons[toast.type]}
{toast.message}
))}
)
}