import React, { useEffect } from 'react'; import { titlefy } from '@vegaprotocol/utils'; import { t } from '@vegaprotocol/i18n'; import { LocalStoragePersistTabs as Tabs, Tab, TradingAnchorButton, } from '@vegaprotocol/ui-toolkit'; import { Markets } from './markets'; import { Proposed } from './proposed'; import { usePageTitleStore } from '../../stores'; import { Closed } from './closed'; import { DApp, TOKEN_NEW_MARKET_PROPOSAL, useLinks, } from '@vegaprotocol/environment'; export const MarketsPage = () => { const { updateTitle } = usePageTitleStore((store) => ({ updateTitle: store.updateTitle, })); const tokenLink = useLinks(DApp.Token); const externalLink = tokenLink(TOKEN_NEW_MARKET_PROPOSAL); useEffect(() => { updateTitle(titlefy(['Markets'])); }, [updateTitle]); return (