(props: { to: string; label: string; active: boolean; onNavigate?: () => void })
| 126 | // ── NavItem ────────────────────────────────────────────────────────────── |
| 127 | |
| 128 | function 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 |
nothing calls this directly
no test coverage detected