import { __assign } from "tslib";
import * as React from "react";
export var withContext = function (context) { return function (component) { return function (props) {
    var contextValue = React.useContext(context);
    return React.createElement(component, __assign(__assign({}, contextValue), props));
}; }; };
