import { Networks, useEnvironment } from '@vegaprotocol/environment'; import { AsyncRenderer, Splash } from '@vegaprotocol/ui-toolkit'; import { DepositManager } from './deposit-manager'; import { t, useDataProvider } from '@vegaprotocol/react-helpers'; import { enabledAssetsProvider } from '@vegaprotocol/assets'; import type { DepositDialogStylePropsSetter } from './deposit-dialog'; /** * Fetches data required for the Deposit page */ export const DepositContainer = ({ assetId, setDialogStyleProps, }: { assetId?: string; setDialogStyleProps?: DepositDialogStylePropsSetter; }) => { const { VEGA_ENV } = useEnvironment(); const { data, loading, error } = useDataProvider({ dataProvider: enabledAssetsProvider, }); return ( {data && data.length ? ( ) : (

{t('No assets on this network')}

)}
); };