import React from 'react'; // Figma-based Alert component with proper CSS variables and styling interface FigmaAlertProps { title: string; variant?: 'success' | 'error' | 'warning' | 'info'; children?: React.ReactNode; onClose?: () => void; className?: string; } export const FigmaAlert: React.FC = ({ title, variant = 'info', children, onClose, className = '' }) => { const getBorderColor = () => { switch (variant) { case 'success': return 'bg-Other-Green'; case 'error': return 'bg-red-500'; case 'warning': return 'bg-yellow-500'; default: return 'bg-blue-500'; } }; return (
{title} {children &&
{children}
}
{onClose && ( )}
); }; export default FigmaAlert;