import React from 'react'; import { useLocation } from 'react-router-dom'; import { Paper, Tab, Tabs } from '@mui/material'; import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; import { useInstanceStatus } from 'hooks/api/getters/useInstanceStatus/useInstanceStatus'; import { CenteredNavLink } from './CenteredNavLink'; function AdminMenu() { const { uiConfig } = useUiConfig(); const { pathname } = useLocation(); const { isBilling } = useInstanceStatus(); const { flags } = uiConfig; return ( Users } /> {flags.UG && ( Groups } /> )} {flags.RE && ( Project roles } /> )} API access } /> {uiConfig.flags.embedProxyFrontend && ( CORS origins } /> )} Single sign-on } /> Instance stats } /> {isBilling && ( Billing } /> )} ); } export default AdminMenu;