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

Function getAlertColor

web/src/components/organization/billing-alerts.tsx:87–96  ·  view source on GitHub ↗
(severity: string)

Source from the content-addressed store, hash-verified

85 }
86
87 const getAlertColor = (severity: string) => {
88 switch (severity) {
89 case 'critical':
90 return 'destructive'
91 case 'warning':
92 return 'secondary'
93 default:
94 return 'default'
95 }
96 }
97
98 if (loading) {
99 return null

Callers 1

BillingAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected