text: import React from "react"
  import TourList from "./TourList"
  import { useStaticQuery, graphql } from "gatsby"
  
  const getTours = graphql`
    query {
      tours: allContentfulGbTour {
        edges {
          node {
            name
            price
            slug
            city
            contentful_id
            days
            images {
              fluid {
                ...GatsbyContentfulFluid
              }
            }
          }
        }
      }
    }
  `
  
  const Tours = () => {
    const { tours } = useStaticQuery(getTours)
  
    return <TourList tours={tours} />
  }
  
  export default Tours
  