// Alert.tsx import React from 'react'; import { motion } from 'framer-motion'; import { CheckCircle2, XCircle } from 'lucide-react'; interface AlertProps { variant?: 'success' | 'error'; children: React.ReactNode; } export const Alert: React.FC = ({ variant = 'success', children }) => { const variants = { success: { bg: 'bg-primary/10', border: 'border-primary', text: 'text-primary', icon: }, error: { bg: 'bg-red-500/10', border: 'border-red-500', text: 'text-red-400', icon: } }; const style = variants[variant]; return ( {style.icon}
{children}
); }; export const AlertDescription: React.FC<{ children: React.ReactNode }> = ({ children }) => { return
{children}
; };