import { Markets } from '@vegaprotocol/graphql';
import { useRouter } from 'next/router';
import { MarketListTable } from '@vegaprotocol/market-list';
import { useMarkets } from '../../hooks/use-markets';
import { AsyncRenderer } from '../../components/async-renderer';
import { updateCallback } from '@vegaprotocol/react-helpers';
const Markets = () => {
const { pathname, push } = useRouter();
const { markets, error, loading } = useMarkets(updateCallback);
return (