({ Icon, isActive, label })
| 5 | import { StreamManager, StreamState } from '@utils/streamManager'; |
| 6 | |
| 7 | const 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 | |
| 14 | const SensorStatusBar: React.FC = () => { |
| 15 | const [streams, setStreams] = useState<StreamState>(() => StreamManager.getCurrentState()); |
nothing calls this directly
no outgoing calls
no test coverage detected