text: import React, { Component } from 'react';
  import { render } from 'react-dom'
  
  import Master from './containers/Master'
  import App from './containers/App'
  import Fireadmin from './containers/Fireadmin'
  import Push from './containers/Push'
  import Config from   './config/app';
  
  import { Router, Route,hashHistory,IndexRoute } from 'react-router'
  
  class Admin extends Component {
  
    //Prints the dynamic routes that we need for menu of type fireadmin
    getFireAdminRoutes(item){
      if(item.link=="fireadmin"){
        return (<Route path={"/fireadmin/"+item.path} component={Fireadmin}/>)
      }else{
  
      }
    }
  
    //Prints the dynamic routes that we need for menu of type fireadmin
    getFireAdminSubRoutes(item){
      if(item.link=="fireadmin"){
        return (<Route path={"/fireadmin/"+item.path+"/:sub"} component={Fireadmin}/>)
      }else{
  
      }
    }
  
    //Prints the Routes
    /*
    {Config.adminConfig.menu.map(this.getFireAdminRoutes)}
    {Config.adminConfig.menu.map(this.getFireAdminSubRoutes)}
    */
    render() {
      return (
        <Router history={hashHistory}>
            <Route path="/" component={Master}>
              {/* make them children of `Master` */}
              <IndexRoute component={App}></IndexRoute>
              <Route path="/app" component={App}/>
              <Route path="/push" component={Push}/>
  
              <Route path="/fireadmin" component={Fireadmin}/>
              <Route path="/fireadmin/:sub" component={Fireadmin}/>
  
  
            </Route>
          </Router>
      );
    }
  
  }
  
  export default Admin;
  