text: ﻿import React, { Component } from 'react';
  import { bindActionCreators } from 'redux';
  import { connect } from 'react-redux';
  import { Link } from 'react-router-dom';
  import { actionCreators } from '../actions/index';
  import { Nav, Navbar, NavItem } from 'react-bootstrap';
  import { LinkContainer } from 'react-router-bootstrap';
  import './NavMenu.css';
  
  class NavMenu extends Component {
    render() {
      return (
        <Navbar inverse fixedTop fluid collapseOnSelect>
          <Navbar.Collapse>
            <Nav>
              <LinkContainer to={`/`} exact>
                <NavItem>Dashboard</NavItem>
              </LinkContainer>
            </Nav>
          </Navbar.Collapse>
        </Navbar>
      );
    }
  }
  
  const mapStateToProps = state => {
    return state;
  };
  
  const mapDispatchToProps = dispatch => {
    return bindActionCreators(actionCreators, dispatch);
  };
  
  export default connect(
    mapStateToProps,
    mapDispatchToProps,
    null,
    {
      pure: false
    }
  )(NavMenu);
  