import type { Key, ReactNode } from "react" import { FOCUS_RING_CLASS } from "../intentStyles.ts" import { TextLink } from "../TextLink/TextLink.tsx" import { toClassName } from "../toClassName.ts" /** * One rung of the trail. * * Which of the three it becomes is read off the fields it carries, so * a caller mapping a path to items never has to say what the rung * *is* — only where it goes: * * - `href` — a real ``, through `TextLink`, so an in-app path * goes through the injected router exactly as every other link in * the library does. * - `onSelect` and no `href` — a ` ) : ( {item.label} )} ) })} )