MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / NavItem

Function NavItem

packages/app/src/web/shell.tsx:38–53  ·  view source on GitHub ↗
(props: { to: string; label: string; active: boolean; onNavigate?: () => void })

Source from the content-addressed store, hash-verified

36// ── NavItem ──────────────────────────────────────────────────────────────
37
38function NavItem(props: { to: string; label: string; active: boolean; onNavigate?: () => void }) {
39 return (
40 <Link
41 to={props.to}
42 onClick={props.onNavigate}
43 className={[
44 "flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm transition-colors",
45 props.active
46 ? "bg-sidebar-active text-foreground font-medium"
47 : "text-sidebar-foreground hover:bg-sidebar-active/60 hover:text-foreground",
48 ].join(" ")}
49 >
50 {props.label}
51 </Link>
52 );
53}
54
55// ── PluginNav ────────────────────────────────────────────────────────────
56//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected