(entries: TocEntry[])
| 8 | import { useScrollspy } from "./scrollspy.ts" |
| 9 | |
| 10 | const useActiveEntry = (entries: TocEntry[]) => |
| 11 | useScrollspy(useMemo(() => entries.map(entry => entry.id), [entries])) |
| 12 | |
| 13 | /** the shallowest heading depth, so a page of only H3s doesn't render as all subs */ |
| 14 | const topDepth = (entries: TocEntry[]) => |
no test coverage detected