26 lines
677 B
TypeScript
26 lines
677 B
TypeScript
|
import {
|
||
|
AssetDetailsDialog,
|
||
|
useAssetDetailsDialogStore,
|
||
|
} from '@vegaprotocol/assets';
|
||
|
import { VegaConnectDialog } from '@vegaprotocol/wallet';
|
||
|
import { Connectors } from '../lib/vega-connectors';
|
||
|
import { RiskNoticeDialog } from '../components/risk-notice-dialog';
|
||
|
|
||
|
const DialogsContainer = () => {
|
||
|
const { isOpen, symbol, trigger, setOpen } = useAssetDetailsDialogStore();
|
||
|
return (
|
||
|
<>
|
||
|
<VegaConnectDialog connectors={Connectors} />
|
||
|
<AssetDetailsDialog
|
||
|
assetSymbol={symbol}
|
||
|
trigger={trigger || null}
|
||
|
open={isOpen}
|
||
|
onChange={setOpen}
|
||
|
/>
|
||
|
<RiskNoticeDialog />
|
||
|
</>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default DialogsContainer;
|