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