MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / collectPages

Function collectPages

docs/app/utils/flatten-sidebar.ts:4–7  ·  view source on GitHub ↗
(section: SidebarSection)

Source from the content-addressed store, hash-verified

2
3export function flattenSidebarItems(sections: SidebarSection[]) {
4 const collectPages = (section: SidebarSection): { title: string; slug: string }[] => [
5 ...section.documentationPages,
6 ...section.subsections.flatMap(collectPages),
7 ]
8
9 return sections.flatMap(collectPages)
10}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…