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
