mirror of https://github.com/MaxLeiter/Drift
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
331 B
TypeScript
18 lines
331 B
TypeScript
import { Page } from "@geist-ui/core"
|
|
|
|
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>
|
|
)
|
|
}
|
|
|
|
export default Error
|