text: import React from "react"
  import PropTypes from "prop-types"
  import { useStaticQuery, graphql } from "gatsby"
  
  import "twin.macro"
  
  import Header from "./Header"
  import Footer from "./Footer"
  import Title from "./Title"
  import Navigation from "./Navigation"
  
  const Layout = ({ children }) => {
    const data = useStaticQuery(graphql`
      query SiteTitleQuery {
        site {
          siteMetadata {
            title
          }
        }
      }
    `)
  
    return (
      <>
        <Header>
          <Title siteTitle={data.site.siteMetadata.title} />
          <Navigation />
        </Header>
        <main>{children}</main>
        <Footer />
      </>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  