'use client'; import { AlertTriangle, CheckCircle, XCircle, Clock } from 'lucide-react'; interface Alert { id: string; type: 'critical' | 'warning' | 'success' | 'info'; message: string; time: string; } interface AlertsCardProps { alerts: Alert[]; totalAlerts: number; criticalCount: number; } export default function AlertsCard({ alerts, totalAlerts, criticalCount }: AlertsCardProps) { const getAlertIcon = (type: string) => { switch (type) { case 'critical': return ; case 'warning': return ; case 'success': return ; default: return ; } }; const getAlertBg = (type: string) => { switch (type) { case 'critical': return 'bg-red-500/20'; case 'warning': return 'bg-yellow-500/20'; case 'success': return 'bg-green-500/20'; default: return 'bg-blue-500/20'; } }; return (
{/* Header */}

ALERTS

System notifications

{criticalCount > 0 && ( {criticalCount} Critical )}
{/* Stats */}

{totalAlerts}

Total Alerts

Stabilizing

System Status

{/* Alert List */}
{alerts.map((alert) => (
{getAlertIcon(alert.type)}

{alert.message}

{alert.time}

))}
{/* View All */}
); }