import { CSSProperties, Component } from "react"; /* import axios from "axios"; */ import { LogoDark } from "../components/logo"; import Home from '@material-ui/icons/Home'; import VideogameAssetIcon from '@material-ui/icons/VideogameAsset'; import ExtensionIcon from '@material-ui/icons/Extension'; import SearchIcon from '@material-ui/icons/Search'; import SettingsIcon from '@material-ui/icons/Settings'; import PersonIcon from '@material-ui/icons/Person'; import {AccountAvatar} from "./account"; var NavBarItemStyle: CSSProperties = { margin: 12, marginBottom: 16, display: "block" } export class NavBar extends Component { state: { loggedIn: boolean } = { loggedIn: false } constructor(props: {}) { super(props); } render () { if (typeof window !== "undefined") { // hot garbage but werks :tada: var loggedIn = document.cookie.includes("token"); if (this.state.loggedIn != loggedIn) this.setState({ loggedIn }); } return
} }