content: import React, { Component } from 'react';
  import { Link } from 'react-router';
  
  import style from './style.css';
  import SubMenu from './subMenu';
  import { MENU, WP_PAGES ,WP_PATH ,WP_POST_PATH } from '../../constants';
  
  
  class Menu extends Component {
    render() {
      let container=[];
      for(var index in MENU){
        let page=MENU[index];
        let page_path=(page==='news')?WP_POST_PATH:WP_PATH;
        container.push(<div className={style.navContainer} key={index}>
            <Link className={`nav-link ${style.navLink}`} to={`${page_path}/${WP_PAGES[page].path}`}>{WP_PAGES[page].label}  </Link>
            <SubMenu path={page} />
           </div>);
      }
      return (
        <div className={style.nav}>
         {container}
        </div>
      );
    }
  }
  export default Menu;
  