import { Button } from '@vegaprotocol/ui-toolkit'; import { withdrawalProvider, WithdrawalsTable, useIncompleteWithdrawals, } 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'; import { ViewType, useSidebar } from '../../components/sidebar'; export const WithdrawalsContainer = () => { const { pubKey, isReadOnly } = useVegaWallet(); const { data, error } = useDataProvider({ dataProvider: withdrawalProvider, variables: { partyId: pubKey || '' }, skip: !pubKey, }); const setView = useSidebar((store) => store.setView); const { ready, delayed } = useIncompleteWithdrawals(); return (
{!isReadOnly && (
)}
); };