import React from 'react'; import { AlertTriangle } from 'lucide-react'; import { Box } from './Box'; import { Icon } from './Icon'; import { Surface } from './Surface'; import { Text } from './Text'; export interface ErrorBannerProps { title?: string; message: string; variant?: 'error' | 'warning' | 'info'; } export const ErrorBanner = ({ title, message, variant = 'error' }: ErrorBannerProps) => { const intent = variant === 'error' ? 'critical' : variant === 'warning' ? 'warning' : 'primary'; const color = variant === 'error' ? 'rgba(227, 92, 92, 0.05)' : variant === 'warning' ? 'rgba(255, 190, 77, 0.05)' : 'rgba(25, 140, 255, 0.05)'; const borderColor = variant === 'error' ? 'rgba(227, 92, 92, 0.2)' : variant === 'warning' ? 'rgba(255, 190, 77, 0.2)' : 'rgba(25, 140, 255, 0.2)'; return ( {title && ( {title} )} {message} ); };