import { h } from 'preact'
import Head from './head.ts'

const OtherPage = ({ error }) => (
  <section>
    <Head>
      <title> : Error</title>
    </Head>

    <h1>Oh no!</h1>
    <pre>{JSON.stringify(error, ['name', ...Object.getOwnPropertyNames(error)], '  ')}</pre>
  </section>
)

export default OtherPage
