import { useToast } from '@/hooks/useToast';
export function ToastViewport(): JSX.Element {
const { toasts, dismiss } = useToast();
return (
{toasts.map((t) => {
const isError = t.kind === 'error';
const isSuccess = t.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 (
{t.message}
);
})}
);
}