brf/client/public/components/error_page.tsx
2025-12-13 21:12:08 +01:00

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