MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getAlertIcon

Function getAlertIcon

web/src/components/organization/billing-alerts.tsx:74–85  ·  view source on GitHub ↗
(type: string, severity: string)

Source from the content-addressed store, hash-verified

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) {

Callers 1

BillingAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected