import { Document } from '../utils/mdx-utils' import Layout from '../components/Layout' import SEO from '../components/SEO' import { getSearchIndex, SearchIndex } from '../utils/search' import Doggy from '../components/Doggy' interface IndexProps { documents: Document[] searchIndex: SearchIndex } export default function FourOhFour({ searchIndex }: IndexProps) { return (

404: Not found 😢

Here’s a doggy 😀

) } export function getStaticProps() { const searchIndex = getSearchIndex() return { props: { searchIndex } } }