// Shell: sidebar + topbar layout function Sidebar({ route, onNav, counts }) { const nav = [ { key: "dashboard", label: "Dashboard", icon: "dashboard" }, { key: "instances", label: "Instances", icon: "instance", count: counts.instances }, { key: "launch", label: "Launch New", icon: "rocket" }, { key: "keys", label: "API Keys", icon: "key" }, { key: "metrics", label: "Metrics", icon: "chart" }, { key: "skills", label: "Skills Library", icon: "skills", count: counts.skills }, { key: "billing", label: "Billing", icon: "billing" }, ]; return ( ); } function Topbar({ crumbs, onNav, right }) { return (
{crumbs.map((c, i) => ( {i > 0 && } c.go && onNav(c.go)} style={{ cursor: c.go ? "pointer" : "default" }} > {c.label} ))}
⌘K
{right}
); } window.Sidebar = Sidebar; window.Topbar = Topbar;