vega-frontend-monorepo/apps/trading/client-pages/deposit/deposit.tsx
2023-09-20 13:28:34 -07:00

15 lines
451 B
TypeScript

import { DepositContainer } from '@vegaprotocol/deposits';
import { useSearchParams } from 'react-router-dom';
import { DepositGetStarted } from './deposit-get-started';
export const Deposit = () => {
const [searchParams] = useSearchParams();
const assetId = searchParams.get('assetId') || undefined;
return (
<div className="flex flex-col gap-6">
<DepositContainer assetId={assetId} />
<DepositGetStarted />
</div>
);
};