import type { Key, ReactNode } from "react"; /** * 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 `