define(["require", "exports", "react", "@fluentui/react-theme-provider", "office-ui-fabric-react/lib/Button"], function (require, exports, React, react_theme_provider_1, Button_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var lightTheme = {
        semanticColors: {
            bodyBackground: 'white',
            bodyText: 'black',
        },
    };
    var darkTheme = {
        semanticColors: {
            bodyBackground: 'black',
            bodyText: 'white',
        },
    };
    exports.ThemeProviderNestedExample = function () {
        var _a = React.useState(true), isLight = _a[0], setIsLight = _a[1];
        return (React.createElement(react_theme_provider_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(react_theme_provider_1.ThemeProvider, { theme: isLight ? darkTheme : lightTheme },
                React.createElement("div", null,
                    "I am a nested ",
                    isLight ? 'dark theme' : 'light theme'))));
    };
});
//# sourceMappingURL=ThemeProvider.Nested.Example.js.map