import { useRef, memo } from 'react'; import { AsyncRenderer } from '@vegaprotocol/ui-toolkit'; import { t } from '@vegaprotocol/react-helpers'; import type { AgGridReact } from 'ag-grid-react'; import PositionsTable from './positions-table'; import type { Position } from './positions-data-providers'; import { AssetBalance } from '@vegaprotocol/accounts'; import { usePositionsData } from './use-positions-data'; interface PositionsProps { partyId: string; assetSymbol: string; onClose: (position: Position) => void; } export const Positions = memo( ({ partyId, assetSymbol, onClose }: PositionsProps) => { const gridRef = useRef(null); const { data, error, loading, getRows } = usePositionsData( partyId, gridRef, assetSymbol ); return (

{assetSymbol} {t('markets')}

{assetSymbol} {t('balance')}:
); } );