2023-08-02 17:06:49 +00:00
|
|
|
import { DepositContainer } from '@vegaprotocol/deposits';
|
2023-09-20 20:28:34 +00:00
|
|
|
import { useSearchParams } from 'react-router-dom';
|
|
|
|
import { DepositGetStarted } from './deposit-get-started';
|
2023-08-02 17:06:49 +00:00
|
|
|
|
|
|
|
export const Deposit = () => {
|
2023-09-20 20:28:34 +00:00
|
|
|
const [searchParams] = useSearchParams();
|
|
|
|
const assetId = searchParams.get('assetId') || undefined;
|
2023-08-02 17:06:49 +00:00
|
|
|
return (
|
2023-09-20 20:28:34 +00:00
|
|
|
<div className="flex flex-col gap-6">
|
|
|
|
<DepositContainer assetId={assetId} />
|
|
|
|
<DepositGetStarted />
|
2023-08-02 17:06:49 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|