MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / statusColor

Function statusColor

src/ui/components/McpPicker.tsx:22–35  ·  view source on GitHub ↗
(state: McpServerState)

Source from the content-addressed store, hash-verified

20}
21
22function statusColor(state: McpServerState): string {
23 switch (state.status) {
24 case "connected":
25 return COLORS.success
26 case "connecting":
27 return COLORS.warning
28 case "failed":
29 return COLORS.error
30 case "needs-auth":
31 return COLORS.warning
32 case "disabled":
33 return COLORS.dim
34 }
35}
36
37function statusIcon(state: McpServerState): string {
38 switch (state.status) {

Callers 2

McpPickerFunction · 0.85
DetailPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected