import { Component } from "inferno"; import { Helmet } from "inferno-helmet"; import { Provider } from "inferno-i18next-dess"; import { Route, Switch } from "inferno-router"; import { i18n } from "../../i18next"; import { routes } from "../../routes"; import { favIconPngUrl, favIconUrl, setIsoData } from "../../utils"; import { Footer } from "./footer"; import { Navbar } from "./navbar"; import { NoMatch } from "./no-match"; import "./styles.scss"; import { Theme } from "./theme"; export class App extends Component { private isoData = setIsoData(this.context); constructor(props: any, context: any) { super(props, context); } render() { let siteRes = this.isoData.site_res; let siteView = siteRes.site_view; let icon = siteView.site.icon; return ( <>
{icon && ( )}
{routes.map( ({ path, exact, component: Component, ...rest }) => ( } /> ) )} } />
); } }