1 import { Component } from "inferno";
2 import { Link } from "inferno-router";
3 import { IsoDataOptionalSite } from "shared/interfaces";
4 import { setIsoData } from "../../utils";
6 export class ErrorPage extends Component<any, any> {
7 private isoData: IsoDataOptionalSite = setIsoData(this.context);
9 constructor(props: any, context: any) {
10 super(props, context);
14 const { errorPageData } = this.isoData;
17 <div className="container-lg text-center">
18 <h1>{errorPageData ? "Error!" : "Page Not Found"}</h1>
22 There was an error on the server. Try refreshing your browser. If
23 that doesn't work, come back at a later time. If the problem
24 persists, you can seek help in the{" "}
25 <a href="https://lemmy.ml/c/lemmy_support">
26 Lemmy support community
29 <a href="https://matrix.to/#/#lemmy-space:matrix.org">
35 "The page you are looking for does not exist."
40 Click here to return to your home page.
43 {errorPageData?.adminMatrixIds &&
44 errorPageData.adminMatrixIds.length > 0 && (
47 If you would like to reach out to one of{" "}
48 {this.isoData.site_res?.site_view.site.name ?? "this instance"}
49 's admins for support, try the following Matrix addresses:
51 <ul className="mx-auto mt-2" style={{ width: "fit-content" }}>
52 {errorPageData.adminMatrixIds.map(matrixId => (
53 <li key={matrixId} className="text-info">
60 {errorPageData?.error && (
62 style={{ "text-align": "start" }}
63 className="d-block bg-dark text-light p-2 mt-4"