// ============ Layout: Sidebar + TopBar ============ const NAV = [ { id: "inicio", label: "Inicio", icon: "home" }, { id: "cursos", label: "Mis Cursos", icon: "book" }, { id: "calendario", label: "Calendario", icon: "calendar" }, { id: "tareas", label: "Tareas", icon: "task" }, { id: "certificados", label: "Certificados", icon: "award" }, { id: "progreso", label: "Mi progreso", icon: "trending" }, ]; function Logo({ light }) { return (
ia
Academia Adopción en IA
); } function Sidebar({ route, go, pendingTasks, onSupport }) { const user = window.DATA && window.DATA.user ? window.DATA.user : { name: "", company: "DataVoices" }; const companyLogo = user.company ? user.company.split(" ").slice(0, 2).map(n => n[0]).join("").toUpperCase() : "DV"; return ( ); } function TopBar({ title, crumb, onSearch, query }) { const [open, setOpen] = useState(false); const u = DATA.user; return (
{crumb}

{title}

onSearch(e.target.value)} />
setOpen((o) => !o)}>
{u.name} {u.company}
{open && (
e.stopPropagation()}>
{u.name}{u.role}
)}
); } Object.assign(window, { NAV, Logo, Sidebar, TopBar });