"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    DepositWithDialog: function() {
        return DepositWithDialog;
    },
    DepositWithSheet: function() {
        return DepositWithSheet;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _modal = require("../../modal");
const _modalHelper = require("../../modal/modalHelper");
const _deposit = require("./deposit");
const _sheet = require("../../sheet/sheet");
const _dialog = require("../../dialog/dialog");
const DepositWithSheet = (0, _modalHelper.create)((props)=>{
    const { visible, hide, resolve, reject, onOpenChange } = (0, _modal.useModal)();
    const onOk = (data)=>{
        resolve(data);
        hide();
    };
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_sheet.Sheet, {
        open: visible,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_sheet.SheetContent, {
            children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_deposit.Deposit, {
                onOk: onOk,
                // @ts-ignore
                dst: {
                    chainId: 0,
                    address: "",
                    decimals: 0,
                    symbol: "",
                    network: ""
                }
            })
        })
    });
});
const DepositWithDialog = (0, _modalHelper.create)((props)=>{
    const { visible, hide, resolve, reject, onOpenChange } = (0, _modal.useModal)();
    const onOk = (data)=>{
        resolve(data);
        hide();
    };
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_dialog.Dialog, {
        open: visible,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_dialog.DialogContent, {
            className: "orderly-p-5",
            maxWidth: "lg",
            children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_deposit.Deposit, {
                onOk: onOk,
                // @ts-ignore
                dst: {
                    chainId: 0,
                    address: "",
                    decimals: 0,
                    symbol: "",
                    network: ""
                }
            })
        })
    });
});

//# sourceMappingURL=dialog.js.map