import { AlertCircle, CheckCircle, AlertTriangle, Info } from 'lucide-react'; interface AlertProps { type: 'success' | 'danger' | 'warning' | 'info'; message: string; onDismiss?: () => void; } const icons = { success: CheckCircle, danger: AlertCircle, warning: AlertTriangle, info: Info, }; export function Alert({ type, message, onDismiss }: AlertProps) { const Icon = icons[type]; return (
{message} {onDismiss && ( )}
); }