import { useCallback } from 'react'; import { Button } from '@vegaprotocol/ui-toolkit'; import { t } from '@vegaprotocol/react-helpers'; import { useWithdrawalDialog } from '@vegaprotocol/withdraws'; import type { AssetFieldsFragment } from '@vegaprotocol/assets'; import { useAssetDetailsDialogStore } from '@vegaprotocol/assets'; import { Splash } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { AccountManager } from '@vegaprotocol/accounts'; import { useDepositDialog } from '@vegaprotocol/deposits'; export const AccountsContainer = () => { const { pubKey } = useVegaWallet(); const { open: openAssetDetailsDialog } = useAssetDetailsDialogStore(); const openWithdrawalDialog = useWithdrawalDialog((store) => store.open); const openDepositDialog = useDepositDialog((store) => store.open); const onClickAsset = useCallback( (value?: string | AssetFieldsFragment) => { value && openAssetDetailsDialog(value); }, [openAssetDetailsDialog] ); if (!pubKey) { return (

{t('Please connect Vega wallet')}

); } return (
); };