define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Button", "office-ui-fabric-react/lib/Overlay", "./Overlay.Example.scss"], function (require, exports, tslib_1, React, Button_1, Overlay_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var OverlayLightExample = /** @class */ (function (_super) {
        tslib_1.__extends(OverlayLightExample, _super);
        function OverlayLightExample(props) {
            var _this = _super.call(this, props) || this;
            _this._onClick = _this._onClick.bind(_this);
            _this.state = {
                isOverlayVisible: false
            };
            return _this;
        }
        OverlayLightExample.prototype.render = function () {
            var isOverlayVisible = this.state.isOverlayVisible;
            return (React.createElement("div", null,
                React.createElement(Button_1.DefaultButton, { onClick: this._onClick }, "Show the overlay"),
                isOverlayVisible && (React.createElement(Overlay_1.Overlay, { onClick: this._onClick },
                    React.createElement("div", { className: 'OverlayExample-content' },
                        React.createElement("p", null, "I am content within the overlay."))))));
        };
        OverlayLightExample.prototype._onClick = function () {
            this.setState({
                isOverlayVisible: !this.state.isOverlayVisible
            });
        };
        return OverlayLightExample;
    }(React.Component));
    exports.OverlayLightExample = OverlayLightExample;
});
//# sourceMappingURL=Overlay.Light.Example.js.map