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

17 lines
591 B
JavaScript

import * as React from 'react';
import { MergeStylesShadowRootContext, } from '../contexts/MergeStylesShadowRootContext';
/**
* Test if a context is available.
* @returns true if there is a context.
*/
export var useHasMergeStylesShadowRootContext = function () {
return !!useMergeStylesShadowRootContext();
};
/**
* Get a reference to the shadow root context.
* @returns The context for the shadow root.
*/
export var useMergeStylesShadowRootContext = function () {
return React.useContext(MergeStylesShadowRootContext);
};
//# sourceMappingURL=useMergeStylesShadowRoot.js.map