import * as tslib_1 from "tslib";
/* tslint:disable:no-unused-variable */
import * as React from 'react';
/* tslint:enable:no-unused-variable */
import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
import { TeachingBubble } from 'office-ui-fabric-react/lib/TeachingBubble';
var TeachingBubbleSmallHeadlineExample = /** @class */ (function (_super) {
    tslib_1.__extends(TeachingBubbleSmallHeadlineExample, _super);
    function TeachingBubbleSmallHeadlineExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onDismiss = _this._onDismiss.bind(_this);
        _this.state = {
            isTeachingBubbleVisible: false,
        };
        return _this;
    }
    TeachingBubbleSmallHeadlineExample.prototype.render = function () {
        var _this = this;
        var isTeachingBubbleVisible = this.state.isTeachingBubbleVisible;
        var examplePrimaryButton = {
            children: 'Try it out',
        };
        return (React.createElement("div", { className: 'ms-TeachingBubbleExample' },
            React.createElement("span", { className: 'ms-TeachingBubbleBasicExample-buttonArea', ref: function (menuButton) { return _this._menuButtonElement = menuButton; } },
                React.createElement(DefaultButton, { onClick: this._onDismiss, text: isTeachingBubbleVisible ? 'Hide TeachingBubble' : 'Show TeachingBubble' })),
            isTeachingBubbleVisible ? (React.createElement("div", null,
                React.createElement(TeachingBubble, { targetElement: this._menuButtonElement, hasSmallHeadline: true, onDismiss: this._onDismiss, hasCloseIcon: true, primaryButtonProps: examplePrimaryButton, headline: 'Discover what’s trending around you' }, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere, nulla, ipsum? Molestiae quis aliquam magni harum non?"))) : (null)));
    };
    TeachingBubbleSmallHeadlineExample.prototype._onDismiss = function (ev) {
        this.setState({
            isTeachingBubbleVisible: !this.state.isTeachingBubbleVisible
        });
    };
    return TeachingBubbleSmallHeadlineExample;
}(React.Component));
export { TeachingBubbleSmallHeadlineExample };
//# sourceMappingURL=TeachingBubble.SmallHeadline.Example.js.map