import { observer } from "mobx-react"; import * as React from "react"; import { Link } from "react-router-dom"; import { Menu } from "semantic-ui-react"; import * as route from "@client/routePaths"; import { AppState, ConsumeState, injectState } from "@client/state"; interface NavItemProps { to: string; children: React.ReactNode; } const NavItem = observer(({ to, children }: NavItemProps) => { function consumeState(appState: AppState) { const { location } = appState.routerStore; return (