define(["require", "exports", "tslib", "react", "../../../Utilities", "office-ui-fabric-react/lib/Button", "../Overlay", "./Overlay.Example.styles"], function (require, exports, tslib_1, React, Utilities_1, Button_1, Overlay_1, Overlay_Example_styles_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var OverlayDarkExample = /** @class */ (function (_super) {
        tslib_1.__extends(OverlayDarkExample, _super);
        function OverlayDarkExample(props) {
            var _this = _super.call(this, props) || this;
            _this._setVisibilityFalse = function () {
                _this.setState({ isOverlayVisible: false });
            };
            _this._toggleOverlay = function () {
                _this.setState({ isOverlayVisible: !_this.state.isOverlayVisible });
            };
            _this.state = { isOverlayVisible: false };
            return _this;
        }
        OverlayDarkExample.prototype.render = function () {
            var isOverlayVisible = this.state.isOverlayVisible;
            var getClassNames = Utilities_1.classNamesFunction();
            var classNames = getClassNames(Overlay_Example_styles_1.getStyles);
            return (React.createElement("div", null,
                React.createElement(Button_1.DefaultButton, { onClick: this._toggleOverlay, text: "Show the overlay" }),
                isOverlayVisible && (React.createElement(Overlay_1.Overlay, { isDarkThemed: true, onClick: this._setVisibilityFalse },
                    React.createElement("div", { className: classNames.root },
                        React.createElement("p", null, "I am content within the overlay."))))));
        };
        return OverlayDarkExample;
    }(React.Component));
    exports.OverlayDarkExample = OverlayDarkExample;
});
//# sourceMappingURL=Overlay.Dark.Example.js.map