16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
import { h, type FunctionComponent } from 'preact'
|
|
import Head from './head.ts'
|
|
|
|
const OtherPage: FunctionComponent<{ error: Error }> = ({ error }) => (
|
|
<section>
|
|
<Head>
|
|
<title> : Error</title>
|
|
</Head>
|
|
|
|
<h1>Oh no!</h1>
|
|
<pre>{JSON.stringify(error, ['name', ...Object.getOwnPropertyNames(error)], ' ')}</pre>
|
|
</section>
|
|
)
|
|
|
|
export default OtherPage
|