import { PerpMarket, Serum3Market } from '@blockworks-foundation/mango-v4'
import useSelectedMarket from 'hooks/useSelectedMarket'
import Link from 'next/link'
import { useRouter } from 'next/router'
import MarketLogos from './MarketLogos'
import { useTranslation } from 'next-i18next'
const TableMarketName = ({
market,
side,
}: {
market: PerpMarket | Serum3Market
side?: string
}) => {
const { selectedMarket } = useSelectedMarket()
const { asPath } = useRouter()
return selectedMarket?.name === market.name && asPath.includes('/trade') ? (
{t(side)}