"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MdmModuleProvider = void 0;
var react_1 = __importDefault(require("react"));
var context_1 = require("./context");
var MdmModuleProvider = function (_a) {
    var children = _a.children, _b = _a.actions, actions = _b === void 0 ? {} : _b, _c = _a.values, values = _c === void 0 ? {} : _c, _d = _a.listeners, listeners = _d === void 0 ? {} : _d;
    return (react_1.default.createElement(context_1.MdmModuleActionsContext.Provider, { value: actions },
        react_1.default.createElement(context_1.MdmModuleValuesContext.Provider, { value: values },
            react_1.default.createElement(context_1.MdmModuleListenersContext.Provider, { value: listeners }, children))));
};
exports.MdmModuleProvider = MdmModuleProvider;
