import * as React from 'react'; import { cn } from '../../lib/utils'; export interface AlertProps extends React.HTMLAttributes { variant?: 'warning' | 'info' | 'error'; } const Alert = React.forwardRef( ({ className, variant = 'info', ...props }, ref) => { const variantStyles = { warning: 'bg-yellow-50 border-yellow-200 text-yellow-800', info: 'bg-blue-50 border-blue-200 text-blue-800', error: 'bg-red-50 border-red-200 text-red-800', }; return (
); } ); Alert.displayName = 'Alert'; export const AlertTitle = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)); AlertTitle.displayName = 'AlertTitle'; export const AlertDescription = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
)); AlertDescription.displayName = 'AlertDescription'; export { Alert };