import { __extends } from "tslib";
import * as React from 'react';
import { useTheme, ThemeContext, ThemeProvider } from '@fluentui/react-theme-provider';
export default {
    title: 'ThemeProvider',
};
var ThemedContentFC = function () {
    var theme = useTheme();
    console.log('theme from useTheme', theme);
    return null;
};
var ThemedContent = /** @class */ (function (_super) {
    __extends(ThemedContent, _super);
    function ThemedContent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ThemedContent.prototype.render = function () {
        return (React.createElement(ThemeContext.Consumer, null, function (theme) {
            console.log('theme from context consumer', theme);
            return null;
        }));
    };
    return ThemedContent;
}(React.Component));
export var AccessTheme = function () { return (React.createElement(ThemeProvider, null,
    React.createElement(ThemedContent, null),
    React.createElement(ThemedContentFC, null),
    React.createElement("div", null, "See console log"))); };
//# sourceMappingURL=ThemeProvider.stories.js.map