"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
exports.ScopeProvider = void 0;
var React = __importStar(require("react"));
var cache_1 = __importDefault(require("@emotion/cache"));
var core_1 = require("@emotion/core");
var memoize_1 = __importDefault(require("@emotion/memoize"));
var stylis_plugin_extra_scope_1 = __importDefault(require("stylis-plugin-extra-scope"));
var memoizedCreateCacheWithScope = memoize_1["default"](function (scope) {
    return cache_1["default"]({
        stylisPlugins: [stylis_plugin_extra_scope_1["default"](scope)]
    });
});
exports.ScopeProvider = function (props) {
    return (React.createElement(core_1.CacheProvider, { value: memoizedCreateCacheWithScope(props.scope) }, props.children));
};
//# sourceMappingURL=ScopeProvider.js.map