MCPcopy Create free account
hub / github.com/Roy3838/Observer / SensorIcon

Function SensorIcon

app/src/components/SensorBarStatus.tsx:7–12  ·  view source on GitHub ↗
({ Icon, isActive, label })

Source from the content-addressed store, hash-verified

5import { StreamManager, StreamState } from '@utils/streamManager';
6
7const SensorIcon: React.FC<{ Icon: React.ElementType; isActive: boolean; label: string }> = ({ Icon, isActive, label }) => (
8 <div className={`flex items-center gap-1.5 transition-colors ${isActive ? 'text-green-400' : 'text-gray-500'}`} title={label}>
9 <Icon className="w-4 h-4" />
10 <div className={`w-1.5 h-1.5 rounded-full transition-colors ${isActive ? 'bg-green-400 animate-pulse' : 'bg-gray-600'}`}></div>
11 </div>
12);
13
14const SensorStatusBar: React.FC = () => {
15 const [streams, setStreams] = useState<StreamState>(() => StreamManager.getCurrentState());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected