import { t } from '@vegaprotocol/i18n'; import { Splash } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { PositionsManager } from './positions-manager'; export const PositionsContainer = ({ onMarketClick, noBottomPlaceholder, storeKey, allKeys, }: { onMarketClick?: (marketId: string) => void; noBottomPlaceholder?: boolean; storeKey?: string; allKeys?: boolean; }) => { const { pubKey, pubKeys, isReadOnly } = useVegaWallet(); if (!pubKey) { return ( {t('Please connect Vega wallet')} ); } const partyIds = [pubKey]; if (allKeys && pubKeys) { partyIds.push( ...pubKeys .map(({ publicKey }) => publicKey) .filter((publicKey) => publicKey !== pubKey) ); } return ( ); };
{t('Please connect Vega wallet')}