// @flow import React from 'react'; import { Route, Switch, type Location } from 'react-router-dom'; import styled from 'styled-components'; import { ScrollTopComponent } from './scroll-top'; import { SidebarContainer } from '../containers/sidebar'; import { DashboardContainer } from '../containers/dashboard'; import { SendView } from '../views/send'; import { ReceiveView } from '../views/receive'; import { SettingsView } from '../views/settings'; import { NotFoundView } from '../views/not-found'; import { ConsoleView } from '../views/console'; import { LayoutComponent } from '../components/layout'; import { HeaderComponent } from '../components/header'; import { DASHBOARD_ROUTE, SEND_ROUTE, RECEIVE_ROUTE, SETTINGS_ROUTE, CONSOLE_ROUTE, } from '../constants/routes'; const FullWrapper = styled.div` display: flex; flex-direction: column; width: 100%; `; const ContentWrapper = styled.div` display: flex; flex-direction: row; width: 100vw; `; const getTitle = (path: string) => { if (path === '/') return 'Dashboard'; return path.replace('/', ''); }; export const RouterComponent = ({ location }: { location: Location }) => ( {/* $FlowFixMe */} );