import { gql } from '@apollo/client'; import { PageQueryContainer } from '../../components/page-query-container'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { Markets } from './__generated__/Markets'; const MARKETS_QUERY = gql` query Markets { markets { id } } `; const Markets = () => { const { pathname } = useRouter(); return ( query={MARKETS_QUERY}> {(data) => ( <>

Markets

)} ); }; export default Markets;