(section: SidebarSection)
| 2 | |
| 3 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…