import React from 'react'; import { Wifi, WifiOff, Radio, Cpu, Activity, Clock } from 'lucide-react'; const SystemStatusBar = ({ backendStatus = 'checking', totalDetections = 0, lastUpdated = null }) => { const stMap = { online: { label: 'Backend Online', color: '#86efac', dot: '#22c55e', Icon: Wifi }, offline: { label: 'Backend Offline', color: '#fca5a5', dot: '#ef4444', Icon: WifiOff }, checking: { label: 'Connecting…', color: '#fcd34d', dot: '#f59e0b', Icon: Radio }, }; const st = stMap[backendStatus] || stMap.checking; const pillStyle = { display: 'flex', alignItems: 'center', gap: 6, fontSize: 11, fontWeight: 600 }; const sepStyle = { width: 1, height: 14, background: '#1e3057' }; return ( ); }; export default SystemStatusBar;