import { useTranslation } from 'react-i18next'; import { useToast } from '@/hooks/useToast'; export function ToastViewport(): JSX.Element { const { t } = useTranslation(); const { toasts, dismiss } = useToast(); return (
{toasts.map((toast) => { const isError = toast.kind === 'error'; const isSuccess = toast.kind === 'success'; const surface = isError ? 'bg-paper text-ink border border-hairline border-l-4 border-l-bloom-deep' : isSuccess ? 'bg-paper text-ink border border-hairline border-l-4 border-l-success' : 'bg-paper text-ink border border-hairline border-l-4 border-l-primary'; return (
{toast.message}
); })}
); }