MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / getStatusColor

Function getStatusColor

frontend/src/components/Layout/StatusBar.tsx:9–20  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

7 const { connectionStatus } = useWebSocketStore();
8
9 const getStatusColor = (status: string) => {
10 switch (status) {
11 case 'connected':
12 return 'text-success';
13 case 'connecting':
14 return 'text-warning';
15 case 'disconnected':
16 return 'text-error';
17 default:
18 return 'text-muted';
19 }
20 };
21
22 return (
23 <div className="bg-secondary border-t border-border px-6 py-2 flex items-center justify-between text-sm">

Callers 1

StatusBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected