1 import { setIsoData } from "@utils/app";
2 import { Component } from "inferno";
3 import { ErrorPage } from "../app/error-page";
5 class ErrorGuard extends Component<any, any> {
6 private isoData = setIsoData(this.context);
8 constructor(props: any, context: any) {
13 const errorPageData = this.isoData.errorPageData;
14 const siteRes = this.isoData.site_res;
16 if (errorPageData || !siteRes) {
19 return this.props.children;
24 export default ErrorGuard;