import { enabledAssetsProvider } from '@vegaprotocol/assets'; import { DepositManager } from '@vegaprotocol/deposits'; import { useEnvironment } from '@vegaprotocol/environment'; import { t, titlefy, useDataProvider } from '@vegaprotocol/react-helpers'; import { AsyncRenderer, Splash } from '@vegaprotocol/ui-toolkit'; import { Web3Container } from '@vegaprotocol/web3'; import { useEffect } from 'react'; import { usePageTitleStore } from '../../stores'; export const Deposit = () => { const { updateTitle } = usePageTitleStore((store) => ({ updateTitle: store.updateTitle, })); useEffect(() => { updateTitle(titlefy([t('Deposits')])); }, [updateTitle]); const { VEGA_ENV } = useEnvironment(); const { data, error, loading } = useDataProvider({ dataProvider: enabledAssetsProvider, }); return (

{t('Deposit')}

{ if (!assets || !assets.length) { return (

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

); } return ( ); }} />
); };