/** @jsx jsx */ import { ReactChild } from 'react' import { Container, jsx, Styled } from 'theme-ui' import { useSiteMetadata } from '../hooks' import Footer from './footer' import Header from './header' type NamedChildrenSlots = { header?: ReactChild; footer?: ReactChild; body: ReactChild; } const isNamedSlots = (children: any): children is NamedChildrenSlots => typeof children === 'object' && 'body' in children const Layout = ({ children }) => { const { title } = useSiteMetadata() let header: ReactChild =
let footer: ReactChild =