'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
System notifications
{totalAlerts}
Total Alerts
Stabilizing
System Status
{alert.message}
{alert.time}