import Head from 'next/head' import * as React from 'react' import * as types from 'lib/types' import { PageHead } from './PageHead' import styles from './styles.module.css' export const Page404: React.FC = ({ site, pageId, error }) => { const title = site?.name || 'Notion Page Not Found' return ( <> {title}

Notion Page Not Found

{error ? (

{error.message}

) : ( pageId && (

Make sure that Notion page "{pageId}" is publicly accessible.

) )} 404 Not Found
) }