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

19 lines
817 B
JavaScript

define(["require", "exports", "react", "@fluentui/merge-styles"], function (require, exports, React, merge_styles_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useShadowConfig = void 0;
/**
* 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