UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

25 lines (24 loc) 1.32 kB
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 __()); }; define(["require", "exports", 'react', '../../../components/App/AppState', '../../../../index'], function (require, exports, React, AppState_1, index_1) { "use strict"; var NavFabricDemoAppExample = (function (_super) { __extends(NavFabricDemoAppExample, _super); function NavFabricDemoAppExample() { _super.apply(this, arguments); } NavFabricDemoAppExample.prototype.render = function () { return (React.createElement(index_1.Nav, {groups: AppState_1.AppState.examplePages, onRenderLink: function (link) { return ([ 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}, AppState_1.ExampleStatus[link.status]) : null) ]); }})); }; return NavFabricDemoAppExample; }(React.Component)); exports.NavFabricDemoAppExample = NavFabricDemoAppExample; });