import { AsyncRenderer, Button } from '@vegaprotocol/ui-toolkit'; import { PendingWithdrawalsTable, useWithdrawals, useWithdrawalDialog, WithdrawalsTable, } from '@vegaprotocol/withdraws'; import { t } from '@vegaprotocol/react-helpers'; import { VegaWalletContainer } from '../../components/vega-wallet-container'; import { Web3Container } from '@vegaprotocol/web3'; export const WithdrawalsContainer = () => { const { pending, completed, loading, error } = useWithdrawals(); const openWithdrawDialog = useWithdrawalDialog((state) => state.open); return (
( <> {pending && pending.length > 0 && ( <>

{t('Pending withdrawals')}

)} {completed && completed.length > 0 && (

{t('Withdrawal history')}

)} )} />
); };