text: import React from "react";
  import PropTypes from "prop-types";
  import { StaticQuery, graphql } from "gatsby";
  
  import Header from "./header";
  
  function Layout({ children }) {
    return (
      <StaticQuery
        query={graphql`
          query SiteTitleQuery {
            site {
              siteMetadata {
                title
              }
            }
          }
        `}
        render={data => (
          <div className="flex flex-col font-sans min-h-screen text-gray-900">
            <Header siteTitle={data.site.siteMetadata.title} />
  
            <main className="flex flex-col flex-1 md:justify-center w-full bg-greyish">
              {children}
            </main>
          </div>
        )}
      />
    );
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired
  };
  
  export default Layout;
  