import { jsx as _jsx } from "react/jsx-runtime";
import { TPSLOrderEditButton } from "../../block/commons/tpslOrderEditButton";
import { useTPSLOrderRowContext } from "../../block/tp_sl/tpslOrderRowContext";
export const EditButton = (props)=>{
    const { order, position } = useTPSLOrderRowContext();
    return /*#__PURE__*/ _jsx(TPSLOrderEditButton, {
        disabled: !position,
        label: "Edit",
        order: order,
        position: position,
        maxQty: position?.position_qty ?? 0,
        isEditing: true
    });
};

//# sourceMappingURL=editButton.js.map