import { NavigationSidebarItem } from '../../types/navigation'; export interface NavigationSidebarItemButtonProps { item: NavigationSidebarItem; /** "You are on this page" — pathname-derived, and the only thing that carries `aria-current`. */ isActive: boolean; /** * "You clicked this one and it has not arrived yet" — deliberately a separate, * weaker state. Never promoted to active: the accent belongs to the page you * are actually on. */ isPending: boolean; showLabel: boolean; disabled: boolean; onClick: (item: NavigationSidebarItem, event?: React.MouseEvent) => void; } /** * One sidebar entry. * * Rendered as a real anchor whenever it has a `path` — which is what buys the * two things a `