import { Component } from "inferno"; import { T } from "inferno-i18next-dess"; import { Link } from "inferno-router"; import { i18n } from "../../i18next"; import { IsoDataOptionalSite } from "../../interfaces"; import { setIsoData } from "../../utils"; export class ErrorPage extends Component { private isoData: IsoDataOptionalSite = setIsoData(this.context); constructor(props: any, context: any) { super(props, context); } render() { const { errorPageData } = this.isoData; return (

{errorPageData ? i18n.t("error_page_title") : i18n.t("not_found_page_title")}

{errorPageData ? ( ### ## ) : (

{i18n.t("not_found_page_message")}

)} {!errorPageData && ( {i18n.t("not_found_return_home_button")} )} {errorPageData?.adminMatrixIds && errorPageData.adminMatrixIds.length > 0 && ( <>
{i18n.t("error_page_admin_matrix", { instance: this.isoData.site_res?.site_view.site.name ?? "this instance", })}
)} {errorPageData?.error && ( ### )}
); } }