(value: SectionValue)
| 12 | type SectionValue = Page[] | Map<string, Page[]>; |
| 13 | |
| 14 | function isSectionMap(value: SectionValue): value is Map<string, Page[]> { |
| 15 | return value instanceof Map; |
| 16 | } |
| 17 | |
| 18 | export function Nav() { |
| 19 | let {pages, currentPage} = useRouter(); |