import dynamic from 'next/dynamic' import GovernancePageWrapper from './GovernancePageWrapper' import { useState } from 'react' import Button from '@components/shared/Button' import ListMarket from './ListMarket/ListMarket' import { useTranslation } from 'next-i18next' import { InformationCircleIcon } from '@heroicons/react/20/solid' import { useWallet } from '@solana/wallet-adapter-react' import ConnectEmptyState from '@components/shared/ConnectEmptyState' const ListToken = dynamic(() => import('./ListToken/ListToken')) enum LIST_OPTIONS { MARKET, TOKEN, } const BUTTON_WRAPPER_CLASSES = 'col-span-2 rounded-lg border border-th-bkg-3 md:col-span-1 p-6' const ListMarketOrTokenPage = () => { const { t } = useTranslation(['governance']) const { connected } = useWallet() const [listOptions, setListOption] = useState(null) return (
{listOptions === LIST_OPTIONS.MARKET ? ( setListOption(null)} /> ) : listOptions === LIST_OPTIONS.TOKEN ? ( setListOption(null)} /> ) : ( <>

{t('new-listing')}

{connected ? (

{t('list-spot-market')}

{t('list-spot-market-desc')}

{t('list-token')}

{t('list-token-desc')}

) : (
)} )}
) } export default ListMarketOrTokenPage