import { PageProps } from 'gatsby'; import React from 'react'; import Navbar from '../components/navbar'; export default ({ location }: PageProps): JSX.Element => { const messages = [

In your attempt to search for {location.pathname}, you seem to have gotten lost instead. Fret not, for there is always a path{' '} home.

,

Not all who wander are lost, but you seem to be. Go home?

, ]; return ( <> {messages[Math.floor(Math.random() * messages.length)]} ); };