summaryrefslogtreecommitdiff
path: root/src/components/error_page.tsx
blob: 3c479be424a8c4ef1455ac376dda252db1ea0124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { useRouteError } from "react-router-dom";
import "./stylesheets/shared.css";
import MainContentLayout from "./main_content_layout";

export default function ErrorPage() {
  const error = useRouteError();

  return(
    <MainContentLayout>
      <div className="flex flex-col justify-center my-2">
        <div>
          <h1 className="text-3xl">
            Error {error.status}
          </h1>
        </div>
        <div className="text-xl">
          {error.error.message || error.statusText}
        </div>
      </div>
    </MainContentLayout>
  );
}