import orderBy from 'lodash/orderBy'; import { AsyncRenderer, Button } from '@vegaprotocol/ui-toolkit'; import { useWithdrawals, WithdrawalsTable } from '@vegaprotocol/withdraws'; import Link from 'next/link'; export const WithdrawalsContainer = () => { const { data, loading, error } = useWithdrawals(); return ( { const withdrawals = orderBy( data.party?.withdrawals || [], (w) => new Date(w.createdTimestamp).getTime(), 'desc' ); return (
); }} /> ); };