'use client' import type { Toast } from '../types' export function ToastContainer({ toasts, onDismiss }: { toasts: Toast[]; onDismiss: (id: number) => void }) { return (
{toasts.map((toast) => (
{toast.type === 'loading' ? ( ) : toast.type === 'success' ? ( ) : toast.type === 'error' ? ( ) : ( )} {toast.message} {toast.type !== 'loading' && ( )}
))}
) }