"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "dialog", {
    enumerable: true,
    get: function() {
        return dialog;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _simpleDialog = require("../../dialog/simpleDialog");
const _modal = require("../../modal");
const _modalHelper = require("../../modal/modalHelper");
const _modalContext = require("../../modal/modalContext");
const _dialog = require("../../dialog");
const Dialog = (0, _modalHelper.create)((props)=>{
    const { visible, hide, resolve, reject, onOpenChange } = (0, _modal.useModal)();
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_simpleDialog.SimpleDialog, {
        open: visible,
        title: props.title,
        closable: true,
        onOpenChange: onOpenChange,
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_dialog.DialogBody, {
            children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                className: "orderly-py-5 orderly-text-[12px]",
                children: props.content
            })
        })
    });
});
const dialog = (props)=>{
    return _modalContext.modalActions.show(Dialog, props);
};

//# sourceMappingURL=dialog.js.map