import { useVegaWallet } from '@vegaprotocol/wallet'; import { WithdrawFormContainer } from '@vegaprotocol/withdraws'; import { useVegaTransactionStore } from '@vegaprotocol/wallet'; export const WithdrawContainer = ({ assetId }: { assetId?: string }) => { const { pubKey } = useVegaWallet(); const createTransaction = useVegaTransactionStore((state) => state.create); return ( { createTransaction({ withdrawSubmission: { amount, asset, ext: { erc20: { receiverAddress, }, }, }, }); }} /> ); };