import React from 'react'; import { NavLink, useLocation } from 'react-router-dom'; import { Paper, Tab, Tabs } from '@material-ui/core'; import useUiConfig from '../../../hooks/api/getters/useUiConfig/useUiConfig'; const navLinkStyle = { display: 'flex', justifyContent: 'center', alignItems: 'center', width: '100%', textDecoration: 'none', color: 'inherit', padding: '0.8rem 1.5rem', }; const activeNavLinkStyle: React.CSSProperties = { fontWeight: 'bold', borderRadius: '3px', padding: '0.8rem 1.5rem', }; function AdminMenu() { const { uiConfig } = useUiConfig(); const { pathname } = useLocation(); const { flags } = uiConfig; return ( Users } /> {flags.RE && ( PROJECT ROLES } /> )} API Access } /> Single Sign-On } /> ); } export default AdminMenu;