import { Button } from '@vegaprotocol/ui-toolkit'; import { withdrawalProvider, useWithdrawalDialog, WithdrawalsTable, } from '@vegaprotocol/withdraws'; import { useVegaWallet } from '@vegaprotocol/wallet'; import { t } from '@vegaprotocol/i18n'; import { useDataProvider } from '@vegaprotocol/data-provider'; import { VegaWalletContainer } from '../../components/vega-wallet-container'; export const WithdrawalsContainer = () => { const { pubKey, isReadOnly } = useVegaWallet(); const { data, error } = useDataProvider({ dataProvider: withdrawalProvider, variables: { partyId: pubKey || '' }, skip: !pubKey, }); const openWithdrawDialog = useWithdrawalDialog((state) => state.open); return (
{!isReadOnly && (
)}
); };