File size: 717 Bytes
1067b6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"use client";

import { Button } from "@/components/ui/button";
import { Heading } from "@/components/ui/heading";
import Link from "next/link";

export default function GlobalError(props: {
  error: Error;
  reset: () => void;
}) {
  console.log(props.error);

  return (
    <div className="flex items-center justify-center flex-col mt-24">
      <Heading size="h2">Sorry, an error occured loading this page.</Heading>
      <p className="mt-2">
        Please try again, or contact our customer support team if this issue
        persists.
      </p>
      <div className="flex gap-2 items-center mt-4">
        <Link href="/">
          <Button>Return home</Button>
        </Link>
      </div>
    </div>
  );
}