import { Component, ChangeEvent, linkEvent } from "inferno"; import { Link } from "inferno-router"; import { LinkLine } from "./link-line"; import { Icon } from "./icon"; import { i18n, languages } from "../i18next"; export class Navbar extends Component { constructor(props: any, context: any) { super(props, context); } handleLanguageChange(_: any, event: ChangeEvent) { location.href = `/?lang=${event.target.value}`; } languageList() { return Object.keys(i18n.services.resourceStore.data).sort(); } render() { return ( <> ); } }