import React from 'react'; import { AlertCircle, X } from 'lucide-react'; interface ErrorMessageProps { message: string; onDismiss?: () => void; className?: string; variant?: 'error' | 'warning' | 'info'; } const ErrorMessage: React.FC = ({ message, onDismiss, className = '', variant = 'error', }) => { const variantStyles = { error: 'bg-red-50 border-red-200 text-red-800', warning: 'bg-yellow-50 border-yellow-200 text-yellow-800', info: 'bg-blue-50 border-blue-200 text-blue-800', }; const iconColors = { error: 'text-red-600', warning: 'text-yellow-600', info: 'text-blue-600', }; return (

{message}

{onDismiss && ( )}
); }; export default ErrorMessage;