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

Function NavItem

packages/react/src/multiplayer/shell.tsx:128–143  ·  view source on GitHub ↗
(props: { to: string; label: string; active: boolean; onNavigate?: () => void })

Source from the content-addressed store, hash-verified

126// ── NavItem ──────────────────────────────────────────────────────────────
127
128function NavItem(props: { to: string; label: string; active: boolean; onNavigate?: () => void }) {
129 return (
130 <Link
131 to={orgScopedTo(props.to)}
132 onClick={props.onNavigate}
133 className={[
134 "flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm transition-colors",
135 props.active
136 ? "bg-sidebar-active text-foreground font-medium"
137 : "text-sidebar-foreground hover:bg-sidebar-active/60 hover:text-foreground",
138 ].join(" ")}
139 >
140 {props.label}
141 </Link>
142 );
143}
144
145// ── DocsLink ───────────────────────────────────────────────────────────────
146

Callers

nothing calls this directly

Calls 1

orgScopedToFunction · 0.85

Tested by

no test coverage detected