(value: SectionValue)
| 21 | type SectionValue = Page[] | Map<string, Page[]>; |
| 22 | |
| 23 | function isSectionMap(value: SectionValue): value is Map<string, Page[]> { |
| 24 | return value instanceof Map; |
| 25 | } |
| 26 | |
| 27 | export function Nav() { |
| 28 | let {pages, currentPage} = useRouter(); |