1 import React from "react"
2 import { ErrorPageIcon } from "./Icon"
3 import Link from "next/link"
4 import { Button } from "../Button"
5 import { GITHUB_ISSUES_LINK } from "../../constants"
6
7 export const ErrorPage = () => {
8 return (
9 <div className="w-full h-full bg-medusa-bg-subtle flex items-center justify-center">
10 <div className="flex gap-docs_1.5 flex-col items-center justify-center w-fit max-w-lg">
11 <ErrorPageIcon />
12 <div className="flex flex-col items-center gap-docs_0.5">
13 <h1 className="text-medusa-fg-base text-2xl">
14 Oops! Something went wrong.
15 </h1>
16 <span className="text-medusa-fg-subtle txt-large-plus text-pretty text-center">
17 Don’t worry. Our team have automatically been notified of this issue
18 and they are working on it. Please try again later.
19 </span>
20 </div>
21 <div className="flex items-center justify-center gap-docs_0.75">
22 <Link href={GITHUB_ISSUES_LINK} target="_blank" rel="noreferrer">
23 <Button variant="secondary">Report issue</Button>
24 </Link>
25 <Link href="/" passHref>
26 <Button variant="primary">Go to homepage</Button>
27 </Link>
28 </div>
29 </div>
30 </div>
31 )
32 }