import React, { FC, ReactNode } from 'react';

import Layout from '../../components/Layout';
import Content from '../../components/Content';

export interface ErrorPageProps {
  title?: string;
  children?: ReactNode;
}

const ErrorPage: FC<ErrorPageProps> = ({ children, title }) => (
  <Layout>
    <Content>
      <h1>{title}</h1>
      {children}
    </Content>
  </Layout>
);

export default ErrorPage;
