import React from "react"; import { AlertCircle, CheckCircle2, AlertTriangle, Info, X } from "lucide-react"; interface AlertBannerProps { type?: "info" | "success" | "warning" | "danger"; title?: string; message: string; onClose?: () => void; action?: React.ReactNode; } export const AlertBanner: React.FC = ({ type = "info", title, message, onClose, action, }) => { const styles = { info: { container: "bg-sky-950/60 border-sky-800/70 text-sky-200 shadow-xs shadow-sky-950/50", icon: , }, success: { container: "bg-emerald-950/60 border-emerald-800/70 text-emerald-200 shadow-xs shadow-emerald-950/50", icon: , }, warning: { container: "bg-amber-950/60 border-amber-800/70 text-amber-200 shadow-xs shadow-amber-950/50", icon: , }, danger: { container: "bg-rose-950/60 border-rose-800/70 text-rose-200 shadow-xs shadow-rose-950/50", icon: , }, }; const current = styles[type]; return (
{current.icon}
{title &&

{title}

}

{message}

{action &&
{action}
}
{onClose && ( )}
); };