define(["require", "exports", "react", "@fluentui/react/lib/Theme", "@fluentui/react/lib/Button"], function (require, exports, React, Theme_1, Button_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ThemeProviderNestedExample = void 0;
    var lightTheme = {
        semanticColors: {
            bodyBackground: 'white',
            bodyText: 'black',
        },
    };
    var darkTheme = {
        semanticColors: {
            bodyBackground: 'black',
            bodyText: 'white',
        },
    };
    var ThemeProviderNestedExample = function () {
        var _a = React.useState(true), isLight = _a[0], setIsLight = _a[1];
        return (React.createElement(Theme_1.ThemeProvider, { style: { padding: '8px' }, theme: isLight ? lightTheme : darkTheme },
            React.createElement(Button_1.DefaultButton, { onClick: function () { return setIsLight(function (l) { return !l; }); } }, "Toggle theme"),
            React.createElement("div", null,
                "I am ",
                isLight ? 'light theme' : 'dark theme'),
            React.createElement(Theme_1.ThemeProvider, { theme: isLight ? darkTheme : lightTheme },
                React.createElement("div", null,
                    "I am a nested ",
                    isLight ? 'dark theme' : 'light theme'))));
    };
    exports.ThemeProviderNestedExample = ThemeProviderNestedExample;
});
//# sourceMappingURL=ThemeProvider.Nested.Example.js.map