/* Parent → GPS Watch companion: live location, battery, SOS, safe zones. */ function WatchScreen({ onNav, onBack }) { const child = jlChild(); const [sos, setSos] = React.useState(false); React.useEffect(() => { let t; const read = () => { try { const a = JSON.parse(localStorage.getItem('jl_watch')||'{}'); setSos(!!a.sos); } catch(e){} }; read(); t = setInterval(read, 1500); window.addEventListener('storage', read); return () => { clearInterval(t); window.removeEventListener('storage', read); }; }, []); const places = [ { n:'At school', icon:'school', active:true, time:'since 8:02 AM', tint:'var(--success-100)', ic:'var(--success-500)' }, { n:'Home', icon:'home', active:false, time:'safe zone', tint:'var(--gray-100)', ic:'var(--gray-500)' }, { n:'Grandma\u2019s', icon:'map-pin', active:false, time:'safe zone', tint:'var(--gray-100)', ic:'var(--gray-500)' }, ]; return (