// fichaje.eu — Screen: Inicio (employee dashboard) const ScreenInicio = ({ onNav }) => { const [now, setNow] = React.useState(new Date()); React.useEffect(() => { const id = setInterval(() => setNow(new Date()), 1000); return () => clearInterval(id); }, []); // Pretend "today" started 09:02, with 12+45 = 57 min of breaks // For display, show 04:43 worked, with a live counter const workedH = 4, workedM = 43; const greet = now.getHours() < 13 ? 'Buenos días' : now.getHours() < 20 ? 'Buenas tardes' : 'Buenas noches'; const todayStr = now.toLocaleDateString('es-ES', { weekday: 'long', day: 'numeric', month: 'long' }); return (