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