import { useToast } from '../../context/ToastContext'; import type { ToastLevel } from '../../context/ToastContext'; import './ToastStack.css'; const LEVEL_LABEL: Record = { info: 'INFO', success: 'OK', warn: 'WARN', error: 'ERROR', }; export default function ToastStack() { const { toasts, dismissToast, clearAllToasts } = useToast(); if (toasts.length === 0) return null; return (
{toasts.length > 1 && ( )}
); }