import { Alert, Snackbar, Stack } from '@mui/material' import { useToastStore } from '../../stores/toastStore' export function ToastProvider() { const { toasts, dismissToast } = useToastStore() return ( {toasts.map((toast) => ( dismissToast(toast.id)} anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }} sx={{ position: 'relative', transform: 'none', left: 'auto', bottom: 'auto' }} > dismissToast(toast.id)} severity={toast.severity} variant="filled" sx={{ minWidth: 320, boxShadow: 3 }} > {toast.message} ))} ) }