| 72 | } |
| 73 | |
| 74 | const getAlertIcon = (type: string, severity: string) => { |
| 75 | if (severity === 'critical') { |
| 76 | return <AlertTriangle className="h-4 w-4 text-red-600" /> |
| 77 | } else if (severity === 'warning') { |
| 78 | return <AlertTriangle className="h-4 w-4 text-yellow-600" /> |
| 79 | } else if (type === 'high_usage') { |
| 80 | return <TrendingUp className="h-4 w-4 text-blue-600" /> |
| 81 | } else if (type === 'auto_topup_failed') { |
| 82 | return <CreditCard className="h-4 w-4 text-red-600" /> |
| 83 | } |
| 84 | return <CheckCircle className="h-4 w-4 text-green-600" /> |
| 85 | } |
| 86 | |
| 87 | const getAlertColor = (severity: string) => { |
| 88 | switch (severity) { |