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