"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "EditButton", {
    enumerable: true,
    get: function() {
        return EditButton;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _tpslOrderEditButton = require("../../block/commons/tpslOrderEditButton");
const _tpslOrderRowContext = require("../../block/tp_sl/tpslOrderRowContext");
const EditButton = (props)=>{
    const { order, position } = (0, _tpslOrderRowContext.useTPSLOrderRowContext)();
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_tpslOrderEditButton.TPSLOrderEditButton, {
        disabled: !position,
        label: "Edit",
        order: order,
        position: position,
        maxQty: position?.position_qty ?? 0,
        isEditing: true
    });
};

//# sourceMappingURL=editButton.js.map