content: import React from 'react'
  import {
    Router, Route, IndexRoute, browserHistory
  }
  from 'react-router'
  
  import {
    App, Home, About, JoinUs, NotFound, Press,
    Destination, DestinationDetail, DestinationPost, Contact,
    InquiryAdd, InquiryDetail, InquiryList,
    Login, LoginWrapper, LoginSuccess, Logout,
    PopularTrips, TripWrapper, Trip, TripDetail,
    DestinationWrapper, PopularDestinations, DestinationSearchResults, Trippian,
    Terms, TrippianDetail, TrippianSignUp, TrippianList, TrippianEdit, IntlDemo,
    Admin, AdminDestinationList, AdminDestinationListItem, AdminDestinationListItemEdit,
    AdminTrippianList, AdminTrippianListItem, AdminTrippianListItemEdit, AdminInquiryList, AdminTripList,
    AdminInquiryListItem, AdminInquiryListItemEdit,
    AdminTripListItem, AdminTripListItemEdit,
    AdminUserList, AdminUserListItem, AdminUserListItemEdit,
    Dashboard, MyProfile, MyInquiries, MyTripBox, MyPostedTrips, MyDestinationPost,
    SignupWrapper, Signup, SignupSuccess
  }
  from '../containers/index'
  
  
  export default (
    <Router history={browserHistory}>
          <Route component={App} path="/">
              <Route component={About}  path="about" />
              <Route component={DestinationPost} path="destination-post" />
              <Route component={JoinUs} path="join-us"  />
              <Route component={InquiryDetail} path="inquiry/:id"  />
              <Route component={InquiryList} path="my-inquiries"  />
              <Route component={IntlDemo} path="intl"  />
  
              //login
              <Route component={LoginWrapper} path="login" >
                <Route component={Login} path="login" />
                <Route component={LoginSuccess} path="success" />
                <Route component={Logout} path="logout" />
                <IndexRoute component={Login} />
              </Route>
              
              // signup
              <Route component={SignupWrapper} path="signup" >
                <Route component={Signup} path="signup" />
                <Route component={SignupSuccess} path="success" />
                <Route component={Logout} path="logout" />
                <IndexRoute component={Signup} />
              </Route>
              
              <Route component={NotFound} path="not-found"  />
              <Route component={Press} path="press"  />
              <Route component={Terms} path="terms"  />
              
              //Destination 
              <Route component={DestinationWrapper} path="destination" >
                <Route component={Destination} path=":id" >
                  <IndexRoute component={DestinationDetail}/>
                  // may add some route later 
                </Route>
                <Route component={DestinationSearchResults} path="search/:q"  />
                <IndexRoute component={PopularDestinations}/>
              </Route>
              
              // Trip 
              <Route component={TripWrapper} path="trip" >
                <Route component={Trip} path=":id" >
                  <IndexRoute component={TripDetail}/>
                </Route>
                <IndexRoute component={PopularTrips}/>
              </Route>
  
              //Trippian 
              <Route component={Trippian} path="trippian/:id" >
                <Route component={Contact} path="contact"  />
                <IndexRoute component={TrippianDetail}/>
              </Route>
              <Route component={TrippianSignUp} path="become-a-trippian" />
              <Route component={TrippianList} path="trippian" />
  
              // Dashboard
              <Route component={Dashboard} path="dashboard">
                <Route component={TrippianEdit} path="trippian-edit"  />
                <Route component={MyProfile} path="my-profile"  />
                <Route component={MyInquiries} path="my-inquiries"  />
                <Route component={MyPostedTrips} path="my-posted-trips"  />
                <Route component={MyDestinationPost} path="destination-post"  />
                // create trip, vote, favs, saves 
                <Route component={MyTripBox} path="my-trip-box"  />  
                <IndexRoute component={MyProfile}/>
              </Route>
              
  
              //admin routes
              <Route component={Admin} path="admin">
                  <Route component={AdminTrippianList} path="trippian" />
                  <Route component={AdminTrippianListItem} path="trippian/:id" />
                  <Route component={AdminTrippianListItemEdit} path="trippian/:id/edit" />
                  
  
                  <Route component={AdminTripList} path="trip"  />
                  <Route component={AdminTripListItem} path="trip/:id"  />
                  <Route component={AdminTripListItemEdit} path="trip/:id/edit"  />
  
  
                  <Route component={AdminDestinationList} path="destination" />
                  <Route component={AdminDestinationListItem} path="destination/:id" />
                  <Route component={AdminDestinationListItemEdit} path="destination/:id/edit" />
  
                  <Route component={AdminInquiryList} path="inquiry"  />
                  // <Route component={AdminInquiryListItem} path="inquiry/:id"  />
                  // <Route component={AdminInquiryListItemEdit} path="inquiry/:id/edit"  />
  
                  <Route component={AdminUserList} path="user"  />
                  <Route component={AdminUserListItem} path="user/:id"  />
                  <Route component={AdminUserListItemEdit} path="user/:id/edit"  />
  
                  <IndexRoute component={AdminDestinationList}/>
              </Route>
              <IndexRoute component={Home}/>
          </Route>
      </Router>
  )
  