import { jsx as _jsx } from "react/jsx-runtime";
import { useTPSLOrderRowContext } from "../../block/tp_sl/tpslOrderRowContext";
import { OrderCancelButton } from "../../block/commons/orderCancelButton";
export const CancelButton = (props)=>{
    const { onCancelOrder, order } = useTPSLOrderRowContext();
    return /*#__PURE__*/ _jsx(OrderCancelButton, {
        order: order,
        onCancelOrder: onCancelOrder
    });
};

//# sourceMappingURL=cancelButton.js.map