text: import React from "react"
  import { useStaticQuery, graphql, Link } from "gatsby"
  import PropTypes from "prop-types"
  import Menu from './Menu'
  import {HeaderWrapper, Image} from './headerStyles/headerStyles'
  
  const Header = ({ siteTitle }) => {
    const {
      logo,
      wpcontent: {menuItems},
    } = useStaticQuery(graphql`
    query{
      logo: file(relativePath:{eq: "logo.png"}){
        childImageSharp {
          fixed(quality: 100, width: 200){
            ...GatsbyImageSharpFixed_withWebp
          }
        }
      }
      wpcontent {
        menuItems {
          edges {
            node {
              path
              label
            }
          }
        }
      }
    }
    `)
   return <HeaderWrapper>
     <Link to ="/">
  <Image alt="logo artist agency" fixed={logo.childImageSharp.fixed}/>
     </Link>
     <Menu menuItems={menuItems.edges}/>
   </HeaderWrapper>
  }
  
  Header.propTypes = {
    siteTitle: PropTypes.string,
  }
  
  Header.defaultProps = {
    siteTitle: ``,
  }
  
  export default Header
  