"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var Button_1 = require("office-ui-fabric-react/lib/Button");
var Panel_1 = require("office-ui-fabric-react/lib/Panel");
var SearchBox_1 = require("office-ui-fabric-react/lib/SearchBox");
var PanelNavigationExample = /** @class */ (function (_super) {
    tslib_1.__extends(PanelNavigationExample, _super);
    function PanelNavigationExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onClosePanel = function () {
            _this.setState({ showPanel: false });
        };
        _this._onRenderNavigationContent = function (props, defaultRender) {
            return (React.createElement(React.Fragment, null,
                React.createElement(SearchBox_1.SearchBox, { placeholder: "Search here...", styles: {
                        root: {
                            margin: '5px',
                            height: 'auto',
                            width: '100%'
                        }
                    } }),
                defaultRender(props)));
        };
        _this._onShowPanel = function () {
            _this.setState({ showPanel: true });
        };
        _this.state = { showPanel: false };
        return _this;
    }
    PanelNavigationExample.prototype.render = function () {
        return (React.createElement("div", null,
            React.createElement(Button_1.DefaultButton, { secondaryText: "Opens the Sample Panel", onClick: this._onShowPanel, text: "Open Panel" }),
            React.createElement(Panel_1.Panel, { isOpen: this.state.showPanel, type: Panel_1.PanelType.smallFixedFar, onDismiss: this._onClosePanel, isFooterAtBottom: true, headerText: "Panel with custom navigation content", closeButtonAriaLabel: "Close", onRenderNavigationContent: this._onRenderNavigationContent },
                React.createElement("span", null, "Content goes here."))));
    };
    return PanelNavigationExample;
}(React.Component));
exports.PanelNavigationExample = PanelNavigationExample;
//# sourceMappingURL=Panel.Navigation.Example.js.map