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

21 lines
889 B
JavaScript

import { DEFAULT_SHADOW_CONFIG } from '@fluentui/merge-styles';
import * as React from 'react';
var noop = function () { return false; };
var noopShadow = function () { return DEFAULT_SHADOW_CONFIG; };
var noopRootStylesheets = function () { return new Map(); };
var noopUndefined = function () { return undefined; };
export var getNewContext = function () {
return {
stylesheets: new Map(),
useAdoptedStylesheetEx: noop,
useAdoptedStylesheet: noop,
useShadowConfig: noopShadow,
useMergeStylesShadowRootContext: noopUndefined,
useHasMergeStylesShadowRootContext: noop,
useMergeStylesRootStylesheets: noopRootStylesheets,
useWindow: noopUndefined,
useStyled: noopUndefined,
};
};
export var MergeStylesDefaultContext = React.createContext(getNewContext());
//# sourceMappingURL=MergeStylesDefaultContext.js.map