2022-04-09 20:48:19 -04:00
|
|
|
import { Page } from "@geist-ui/core"
|
2022-04-06 19:31:41 -04:00
|
|
|
|
2022-04-09 20:48:19 -04:00
|
|
|
const Error = ({ status }: { status: number }) => {
|
|
|
|
return (
|
|
|
|
<Page title={status.toString() || "Error"}>
|
|
|
|
{status === 404 ? (
|
|
|
|
<h1>This page cannot be found.</h1>
|
|
|
|
) : (
|
|
|
|
<section>
|
|
|
|
<p>An error occurred: {status}</p>
|
|
|
|
</section>
|
|
|
|
)}
|
|
|
|
</Page>
|
|
|
|
)
|
2022-04-06 19:31:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default Error
|