import { jsx as _jsx } from "react/jsx-runtime";
import { useModal } from "../../modal";
import { create } from "../../modal/modalHelper";
import { Deposit } from "./deposit";
import { Sheet, SheetContent } from "../../sheet/sheet";
import { Dialog, DialogContent } from "../../dialog/dialog";
export const DepositWithSheet = create((props)=>{
    const { visible, hide, resolve, reject, onOpenChange } = useModal();
    const onOk = (data)=>{
        resolve(data);
        hide();
    };
    return /*#__PURE__*/ _jsx(Sheet, {
        open: visible,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ _jsx(SheetContent, {
            children: /*#__PURE__*/ _jsx(Deposit, {
                onOk: onOk,
                // @ts-ignore
                dst: {
                    chainId: 0,
                    address: "",
                    decimals: 0,
                    symbol: "",
                    network: ""
                }
            })
        })
    });
});
export const DepositWithDialog = create((props)=>{
    const { visible, hide, resolve, reject, onOpenChange } = useModal();
    const onOk = (data)=>{
        resolve(data);
        hide();
    };
    return /*#__PURE__*/ _jsx(Dialog, {
        open: visible,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ _jsx(DialogContent, {
            className: "orderly-p-5",
            maxWidth: "lg",
            children: /*#__PURE__*/ _jsx(Deposit, {
                onOk: onOk,
                // @ts-ignore
                dst: {
                    chainId: 0,
                    address: "",
                    decimals: 0,
                    symbol: "",
                    network: ""
                }
            })
        })
    });
});

//# sourceMappingURL=dialog.js.map