text: /**
   * Layout component that queries for data
   * with Gatsby's useStaticQuery component
   *
   * See: https://www.gatsbyjs.com/docs/use-static-query/
   */
  
  import React, { useState } from "react"
  import PropTypes from "prop-types"
  
  import Header from "./header"
  import Footer from "./footer"
  
  const Layout = ({ children }) => {
    return (
      <>
        <div className="container flex flex-col justify-between h-screen p-5 mx-auto ">
          <Header />
  
          <main className="">{children}</main>
          <Footer />
        </div>
      </>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  