import React from 'react'; import { NavLink, Route, RouteComponentProps, Switch } from 'react-router-dom'; import TransitionRouter from '@/TransitionRouter'; import NavigationBar from '@/components/NavigationBar'; import DashboardContainer from '@/components/dashboard/DashboardContainer'; import AccountOverviewContainer from '@/components/dashboard/AccountOverviewContainer'; import AccountApiContainer from '@/components/dashboard/AccountApiContainer'; import SecurityKeyContainer from '@/components/dashboard/SecurityKeyContainer'; import SSHKeyContainer from '@/components/dashboard/SSHKeyContainer'; import { NotFound } from '@/components/elements/ScreenBlock'; import SubNavigation from '@/components/elements/SubNavigation'; export default ({ location }: RouteComponentProps) => ( <> {location.pathname.startsWith('/account') && Settings API Credentials Security Keys SSH Keys } > );