"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require('react');
var index_1 = require('../../../../index');
require('./Overlay.Basic.Example.scss');
var OverlayBasicExample = (function (_super) {
    __extends(OverlayBasicExample, _super);
    function OverlayBasicExample() {
        _super.call(this);
        this._onClick = this._onClick.bind(this);
        this.state = {
            isOverlayVisible: false
        };
    }
    OverlayBasicExample.prototype.render = function () {
        var isOverlayVisible = this.state.isOverlayVisible;
        return (React.createElement("div", null, React.createElement(index_1.Button, {onClick: this._onClick}, "Show the overlay"), isOverlayVisible && (React.createElement(index_1.Overlay, {onClick: this._onClick}, React.createElement("div", {className: 'ms-OverlayBasicExample'}, React.createElement("p", null, "I am content within the overlay."))))));
    };
    OverlayBasicExample.prototype._onClick = function () {
        this.setState({
            isOverlayVisible: !this.state.isOverlayVisible
        });
    };
    return OverlayBasicExample;
}(React.Component));
exports.OverlayBasicExample = OverlayBasicExample;

//# sourceMappingURL=Overlay.Basic.Example.js.map
