text: /**
   * Layout component that queries for data
   * with Gatsby's useStaticQuery component
   *
   * See: https://www.gatsbyjs.com/docs/use-static-query/
   */
  
  import * as React from "react"
  import PropTypes from "prop-types"
  import { useStaticQuery, graphql } from "gatsby"
  
  
  import Header from "./header"
  import "../assets/layout.css"
  import "../assets//test.css"
  // import "./main.js"
  // import $ from 'jquery' 
  
  
  const Layout = ({ children }) => {
    const data = useStaticQuery(graphql`
      query SiteTitleQuery {
        site {
          siteMetadata {
            title
          }
        }
      }
    `)
  
    return (
      <>
  
        <Header siteTitle={data.site.siteMetadata?.title || `Title`} />
        {/* <Helmet>
          <script src={withPrefix('../scripts/jquery.min.js')} type="text/javascript" />
          <script src={withPrefix('../scripts/main.js')} type="text/javascript" />
        </Helmet> */}
        <div
          style={{
            margin: `0 auto`,
            maxWidth: 960,
            padding: `0 1.0875rem 1.45rem`,
          }}
        >
          <main>{children}</main>
          <footer
            style={{
              marginTop: `2rem`,
            }}
          >
            © {new Date().getFullYear()}, Built with
            {` `}
            <a href="https://jointadventure.co">Jointadventure</a>
  
          </footer>
        </div>
      </>
    )
  }
  
  Layout.propTypes = {
    children: PropTypes.node.isRequired,
  }
  
  export default Layout
  