import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './App' import Maps from './Maps' import MapView from './MapView' import TopicView from './TopicView' function nullComponent(props) { return null } export default function makeRoutes (currentUser) { const homeComponent = currentUser && currentUser.id ? Maps : nullComponent return }