/* global React */ function MobileStatusBar() { const I = window.Icons; return (
9:41
); } function MobileHome({ user, roleId, onNavigate }) { const I = window.Icons; const greeting = window.getGreeting(); const first = user.name.split(' ')[0]; const modules = window.homeModulesForRole(roleId); const kpis = window.getKPIs(roleId); let chips; if (roleId === 'institucion') { chips = [ { icon: 'AlertCircle', num: 1, label: 'Reporte devuelto', tone: 'warn' }, { icon: 'Clock', num: 3, label: 'Plazos esta semana', tone: 'danger' }, ]; } else if (roleId === 'cancilleria') { chips = [ { icon: 'FileText', num: 3, label: 'Reportes aprobados' }, { icon: 'MessageSquare', num: 1, label: 'Mensajes nuevos' }, ]; } else { chips = [ { icon: 'Inbox', num: 7, label: 'Reportes para revisión', tone: 'warn' }, { icon: 'Clock', num: 5, label: 'Plazos esta semana', tone: 'danger' }, ]; } return (
CGR
CGR Paraguay Compromisos

{greeting}, {first}.

{user.role}

{chips.map((c, i) => (
{React.createElement(I[c.icon], { size: 16 })}
{c.num}
{c.label}
))}
Módulos
{modules.map(m => ( ))}
); } Object.assign(window, { MobileHome });