"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "PositionLimitCloseDialog", {
    enumerable: true,
    get: function() {
        return PositionLimitCloseDialog;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _closeForm = require("./closeForm");
const _modal = require("../../../modal");
const PositionLimitCloseDialog = (props)=>{
    const { hide, reject, resolve } = (0, _modal.useModal)();
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_closeForm.ClosePositionPane, {
        position: props.positions,
        onCancel: ()=>{
            reject();
            hide();
        },
        onClose: (res)=>{
            resolve(res);
            hide();
        },
        side: props.side
    });
};

//# sourceMappingURL=closeDialog.js.map