first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
@@ -0,0 +1,21 @@
define(["require", "exports", "react", "@fluentui/utilities", "@fluentui/theme", "./ThemeContext"], function (require, exports, React, utilities_1, theme_1, ThemeContext_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTheme = void 0;
/**
* Get theme from CustomizerContext or Customizations singleton.
*/
function useCompatTheme() {
return (0, utilities_1.useCustomizationSettings)(['theme']).theme;
}
/**
* React hook for programmatically accessing the theme.
*/
var useTheme = function () {
var theme = React.useContext(ThemeContext_1.ThemeContext);
var legacyTheme = useCompatTheme();
return theme || legacyTheme || (0, theme_1.createTheme)({});
};
exports.useTheme = useTheme;
});
//# sourceMappingURL=useTheme.js.map