function Footer() { const [t, setT] = React.useState(''); React.useEffect(() => { const tick = () => { const d = new Date(); const hh = String(d.getHours()).padStart(2,'0'); const mm = String(d.getMinutes()).padStart(2,'0'); setT(`${hh}:${mm} LCL · CLT`); }; tick(); const id = setInterval(tick, 30000); return () => clearInterval(id); }, []); return ( ); } window.Footer = Footer;