"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "CancelButton", {
    enumerable: true,
    get: function() {
        return CancelButton;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _orderListContext = require("../shared/orderListContext");
const _orderCancelButton = require("../../../block/commons/orderCancelButton");
const CancelButton = (props)=>{
    const { order } = props;
    const { onCancelOrder } = (0, _react.useContext)(_orderListContext.OrderListContext);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_orderCancelButton.OrderCancelButton, {
        order: order,
        onCancelOrder: onCancelOrder
    });
};

//# sourceMappingURL=cancelButton.js.map