import * as React from 'react';
import { ThemeProvider } from '@fluentui/react/lib/Theme';
import { DefaultButton } from '@fluentui/react/lib/Button';
var lightTheme = {
    semanticColors: {
        bodyBackground: 'white',
        bodyText: 'black',
    },
};
var darkTheme = {
    semanticColors: {
        bodyBackground: 'black',
        bodyText: 'white',
    },
};
export var ThemeProviderNestedExample = function () {
    var _a = React.useState(true), isLight = _a[0], setIsLight = _a[1];
    return (React.createElement(ThemeProvider, { style: { padding: '8px' }, theme: isLight ? lightTheme : darkTheme },
        React.createElement(DefaultButton, { onClick: function () { return setIsLight(function (l) { return !l; }); } }, "Toggle theme"),
        React.createElement("div", null,
            "I am ",
            isLight ? 'light theme' : 'dark theme'),
        React.createElement(ThemeProvider, { theme: isLight ? darkTheme : lightTheme },
            React.createElement("div", null,
                "I am a nested ",
                isLight ? 'dark theme' : 'light theme'))));
};
//# sourceMappingURL=ThemeProvider.Nested.Example.js.map