import React from 'react'; import { NavLink, Route, Switch } from 'react-router-dom'; import AccountOverviewContainer from '@/components/dashboard/AccountOverviewContainer'; import NavigationBar from '@/components/NavigationBar'; import DashboardContainer from '@/components/dashboard/DashboardContainer'; import AccountApiContainer from '@/components/dashboard/AccountApiContainer'; import { NotFound } from '@/components/elements/ScreenBlock'; import TransitionRouter from '@/TransitionRouter'; import SubNavigation from '@/components/elements/SubNavigation'; import AccountSSHContainer from '@/components/dashboard/ssh/AccountSSHContainer'; import { useLocation } from 'react-router'; import ActivityLogContainer from '@/components/dashboard/activity/ActivityLogContainer'; export default () => { const location = useLocation(); return ( <> {location.pathname.startsWith('/account') && Settings API Credentials SSH Keys Activity } > ); };