text: import Helmet from "react-helmet"
  import React from "react"
  import PropTypes from "prop-types"
  import { useStaticQuery, graphql } from "gatsby"
  
  import Header from "./header"
  import MobileNav from "./mobile-nav"
  import "./layout.css"
  import favicon from "../images/favicon.ico"
  
  const Layout = ({ children, location }) => {
    const data = useStaticQuery(graphql`
      query SiteTitleQuery {
        site {
          siteMetadata {
            title
          }
        }
      }
    `)
  
    return (
      <React.Fragment>
        <Helmet>
          <link
            href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap"
            rel="stylesheet"
          ></link>
          <link rel="icon" href={favicon}></link>
        </Helmet>
        <Header siteTitle={data.site.siteMetadata.title} />
        <MobileNav />
        <div
          style={{
            margin: `0 0.75rem`,
            minHeight: "75vh",
            padding: `2rem 0 1.45rem`,
            paddingTop: 0,
          }}
        >
          <main>{children}</main>
        </div>
      </React.Fragment>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  