/** * The site's sections. * * Every route this site has was reachable only by already knowing an address — * a block hash, a preimage, an SS58 string, a spec_version. That is fine for a * link somebody sent you and useless for finding out the pages exist at all. * This is the answer to "what else is here". * * The standings are the first entry because they are the front page, and there * is no "Miners" beside them for the same reason: the standings already are the * index of miners, and a second page listing the same rows under a different * address would be two answers to one question. */ import { Link } from 'react-router-dom' import type { Window as WindowName } from '../api/generated/Window' import { href, isStandings, type Route, SECTIONS } from '../lib/routes' export function SectionNav({ chain, route, window: windowName, }: { chain: string | null route: Route /** Carried into the standings link so leaving a section and coming back does * not silently reset the span someone chose. */ window: WindowName }) { if (!chain) return null // The standings are current when nothing else is: no panel open, no index. const onStandings = isStandings(route) return ( ) }