import React from 'react'; import SettingsPage from 'page/settings.js'; import HelpPage from 'page/help'; import ReportPage from 'page/report.js'; import StartPage from 'page/start.js'; import WalletPage from 'page/wallet'; import DetailPage from 'page/show.js'; import PublishPage from 'page/publish.js'; import DiscoverPage from 'page/discover'; import SplashScreen from 'component/splash.js'; import DeveloperPage from 'page/developer.js'; import FileListDownloaded from 'page/fileListDownloaded' import FileListPublished from 'page/fileListPublished' const route = (page, routesMap) => { const component = routesMap[page] return component }; const Router = (props) => { const { currentPage, } = props; return route(currentPage, { 'settings': , 'help': , 'report': , 'downloaded': , 'published': , 'start': , 'claim': , 'wallet': , 'send': , 'receive': , 'show': , 'publish': , 'developer': , 'discover': , }) } export default Router