You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
639 B
29 lines
639 B
"use client";
|
|
|
|
import { Link } from "@nextui-org/react";
|
|
import { ErrorPage } from "@typings/errorPage";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
const MainErrorPage: ErrorPage = ({ error, reset }) => {
|
|
useEffect(() => {
|
|
console.error(error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<div className="container mx-auto flex items-center justify-center min-h-screen text-center">
|
|
<div>
|
|
<p className="text-3xl">Something went loading the page!</p>
|
|
<p className="text-xl">{error.toString()}</p>
|
|
<div>
|
|
<Link href="#" onClick={() => reset()}>
|
|
Try again
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default MainErrorPage;
|