text: import React from "react"
  import { useStaticQuery, graphql } from "gatsby"
  
  const getData = graphql`
    query FirstQuery {
      site {
        info: siteMetadata {
          author
          description
          simpleData
          title
          complexData {
            age
            name
          }
          person {
            age
            name
          }
        }
      }
    }
  `
  
  const FetchData = props => {
    const {
      site: {
        info: { title },
      },
    } = useStaticQuery(getData)
  
    return (
      <div>
        {/* <h2>Nmae:{data.site.info.person.name}</h2> */}
        <h2>site name is :{title}</h2>
      </div>
    )
  }
  
  export default FetchData
  