"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var example_app_base_1 = require("@uifabric/example-app-base");
var AppDefinition_1 = require("../../../demo/AppDefinition");
var Nav_1 = require("office-ui-fabric-react/lib/Nav");
var NavFabricDemoAppExample = /** @class */ (function (_super) {
    tslib_1.__extends(NavFabricDemoAppExample, _super);
    function NavFabricDemoAppExample() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onRenderLink = function (link) {
            return (React.createElement("span", null,
                React.createElement("span", { key: 1, className: "Nav-linkText" }, link.name),
                link.status !== undefined ? (React.createElement("span", { key: 2, className: 'Nav-linkFlair ' + 'is-state' + link.status }, example_app_base_1.ExampleStatus[link.status])) : null));
        };
        return _this;
    }
    NavFabricDemoAppExample.prototype.render = function () {
        return React.createElement(Nav_1.Nav, { groups: AppDefinition_1.AppDefinition.examplePages, onRenderLink: this._onRenderLink });
    };
    return NavFabricDemoAppExample;
}(React.Component));
exports.NavFabricDemoAppExample = NavFabricDemoAppExample;
//# sourceMappingURL=Nav.FabricDemoApp.Example.js.map