import { useState } from 'react'; import { Dialog } from '@vegaprotocol/ui-toolkit'; import { t } from '@vegaprotocol/react-helpers'; import { WithdrawalDialogs } from '@vegaprotocol/withdraws'; import { Web3Container } from '@vegaprotocol/web3'; import { DepositContainer } from '@vegaprotocol/deposits'; import { useAssetDetailsDialogStore } from '@vegaprotocol/assets'; import { Splash } from '@vegaprotocol/ui-toolkit'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { AccountManager } from '@vegaprotocol/accounts'; export const AccountsContainer = () => { const { pubKey } = useVegaWallet(); const [depositDialog, setDepositDialog] = useState(false); if (!pubKey) { return (

{t('Please connect Vega wallet')}

); } return (
); }; export const AssetAccountTable = ({ partyId }: { partyId: string }) => { const [withdrawDialog, setWithdrawDialog] = useState(false); const [depositDialog, setDepositDialog] = useState(false); const { open: openAssetDetailsDialog } = useAssetDetailsDialogStore(); const [assetId, setAssetId] = useState(); return ( <> { value && openAssetDetailsDialog(value); }} onClickWithdraw={(assetId) => { setWithdrawDialog(true); setAssetId(assetId); }} onClickDeposit={(assetId) => { setDepositDialog(true); setAssetId(assetId); }} /> ); }; export interface DepositDialogProps { assetId?: string; depositDialog: boolean; setDepositDialog: (open: boolean) => void; } export const DepositDialog = ({ assetId, depositDialog, setDepositDialog, }: DepositDialogProps) => { return (

{t('Deposit')}

); };