"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
exports.withContext = function (context) { return function (component) { return function (props) {
    return React.createElement(context.Consumer, null, function (consumerProps) {
        return React.createElement(component, tslib_1.__assign(tslib_1.__assign({}, props), consumerProps));
    });
}; }; };
