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

//# sourceMappingURL=cancelButton.js.map