text: /*
  
   ------------------------------------------------------------------------------------
   | ewd-xpress-monitor: React.js-based Monitor/Management Application for ewd-xpress |
   |                                                                                  |
   | Copyright (c) 2016 M/Gateway Developments Ltd,                                   |
   | Reigate, Surrey UK.                                                              |
   | All rights reserved.                                                             |
   |                                                                                  |
   | http://www.mgateway.com                                                          |
   | Email: rtweed@mgateway.com                                                       |
   |                                                                                  |
   |                                                                                  |
   | Licensed under the Apache License, Version 2.0 (the "License");                  |
   | you may not use this file except in compliance with the License.                 |
   | You may obtain a copy of the License at                                          |
   |                                                                                  |
   |     http://www.apache.org/licenses/LICENSE-2.0                                   |
   |                                                                                  |
   | Unless required by applicable law or agreed to in writing, software              |
   | distributed under the License is distributed on an "AS IS" BASIS,                |
   | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.         |
   | See the License for the specific language governing permissions and              |
   |  limitations under the License.                                                  |
   ------------------------------------------------------------------------------------
  
    4 November 2016
  
  */
  
  "use strict"
  
  var React = require('react');
  var ReactBootstrap = require('react-bootstrap');
  var {
    Nav,
    Navbar,
    NavItem
  } = ReactBootstrap;
  
  var Banner = React.createClass({
  
    render: function() {
      //console.log('render Banner');
      //this.props.controller.updateComponentPath(this);
  
      return (
        <div>
          <Navbar inverse >
            <Navbar.Brand>
              {this.props.title}
            </Navbar.Brand>
            <Nav 
              onSelect = {this.props.controller.navOptionSelected}
            >
              <NavItem
                eventKey = "overview"
              >
                Overview
              </NavItem>
              <NavItem
                eventKey = "docstore"
              >
                Document Store
              </NavItem>
              <NavItem
                eventKey = "sessions"
              >
                Sessions
              </NavItem>
            </Nav>
            <Nav
              pullRight
              onSelect = {this.props.controller.navOptionSelected}
            >
              <NavItem
                eventKey = "logout"
              >
                Logout
              </NavItem>
            </Nav>
          </Navbar>
        </div>
      );
    }
  });
  
  module.exports = Banner;
  
  
  