mirror of
https://github.com/MeshEnvy/mesh-forge.git
synced 2026-03-28 17:42:55 +01:00
20 lines
361 B
TypeScript
20 lines
361 B
TypeScript
import { usePageContext } from "vike-react/usePageContext"
|
|
|
|
export default function Page() {
|
|
const { is404 } = usePageContext()
|
|
if (is404) {
|
|
return (
|
|
<>
|
|
<h1>Page Not Found</h1>
|
|
<p>This page could not be found.</p>
|
|
</>
|
|
)
|
|
}
|
|
return (
|
|
<>
|
|
<h1>Internal Error</h1>
|
|
<p>Something went wrong.</p>
|
|
</>
|
|
)
|
|
}
|