import { AlertCircle, CheckCircle, Info } from 'lucide-react'; type Variant = 'error' | 'success' | 'info' | 'warning'; interface Props { variant: Variant; title?: string; children: React.ReactNode; } const icons: Record = { error: , success: , info: , warning: , }; export function Alert({ variant, title, children }: Props) { return (
{icons[variant]}
{title &&

{title}

}
{children}
); }