import React from "react"; import { Nav } from "react-bootstrap"; import { useTranslation } from "react-i18next"; import { useHistory, useRouteMatch } from "react-router"; const AdminNav: React.FC = () => { const match = useRouteMatch<{ name: string }>(); const history = useHistory(); const { t } = useTranslation(); const name = match.params.name; function toggle(newTab: string): void { history.push(`/admin/${newTab}`); } return ( ); }; export default AdminNav;