"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderWithAdaptableContext = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_redux_1 = require("react-redux");
const AdaptableContext_1 = tslib_1.__importDefault(require("./AdaptableContext"));
const AdaptableComputedCSSVarsContext_1 = require("./AdaptableComputedCSSVarsContext");
const renderWithAdaptableContext = (children, adaptable) => {
    return (React.createElement(react_redux_1.Provider, { store: adaptable.adaptableStore.TheStore },
        React.createElement(AdaptableComputedCSSVarsContext_1.WithAdaptableComputedCSSVars, null,
            React.createElement(AdaptableContext_1.default.Provider, { value: adaptable }, children))));
};
exports.renderWithAdaptableContext = renderWithAdaptableContext;
