import { t, titlefy } from '@vegaprotocol/react-helpers'; import { PositionsContainer } from '@vegaprotocol/positions'; import { OrderListContainer } from '@vegaprotocol/orders'; import { ResizableGridPanel, Tab, Tabs } from '@vegaprotocol/ui-toolkit'; import { WithdrawalsContainer } from './withdrawals-container'; import { FillsContainer } from '@vegaprotocol/fills'; import type { ReactNode } from 'react'; import { useEffect } from 'react'; import { VegaWalletContainer } from '../../components/vega-wallet-container'; import { DepositsContainer } from './deposits-container'; import { ResizableGrid } from '@vegaprotocol/ui-toolkit'; import { LayoutPriority } from 'allotment'; import { usePageTitleStore } from '../../stores'; import { LedgerContainer } from '@vegaprotocol/ledger'; import { AccountsContainer } from '../../components/accounts-container'; import { AccountHistoryContainer } from './account-history-container'; import { useNavigate } from 'react-router-dom'; import { Links, Routes } from '../../pages/client-router'; export const Portfolio = () => { const { updateTitle } = usePageTitleStore((store) => ({ updateTitle: store.updateTitle, })); const navigate = useNavigate(); useEffect(() => { updateTitle(titlefy([t('Portfolio')])); }, [updateTitle]); const onMarketClick = (marketId: string) => { navigate(Links[Routes.MARKET](marketId), { replace: true, }); }; const wrapperClasses = 'h-full max-h-full flex flex-col'; return (