Files
starface-outlook-sync-addin/node_modules/@fluentui/utilities/lib-commonjs/shadowDom/hooks/useShadowConfig.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

19 lines
716 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useShadowConfig = void 0;
var React = require("react");
var merge_styles_1 = require("@fluentui/merge-styles");
/**
* Get a shadow config.
* @param stylesheetKey - Globally unique key
* @param win - Reference to the `window` global.
* @returns ShadowConfig
*/
var useShadowConfig = function (stylesheetKey, inShadow, win) {
if (inShadow === void 0) { inShadow = false; }
return React.useMemo(function () {
return (0, merge_styles_1.makeShadowConfig)(stylesheetKey, inShadow, win);
}, [stylesheetKey, inShadow, win]);
};
exports.useShadowConfig = useShadowConfig;
//# sourceMappingURL=useShadowConfig.js.map