import { Users, Award, Settings, HardDrive, Radio, FileText, } from 'react-feather'; import { usePublicSettings } from '@/portainer/settings/queries'; import { SidebarItem } from './SidebarItem'; import { SidebarSection } from './SidebarSection'; interface Props { isAdmin: boolean; } export function SettingsSidebar({ isAdmin }: Props) { const teamSyncQuery = usePublicSettings({ select: (settings) => settings.TeamSync, }); const showUsersSection = !window.ddExtension && (isAdmin || teamSyncQuery.data); return ( {showUsersSection && ( {isAdmin && ( )} )} {isAdmin && ( <> {process.env.PORTAINER_EDITION !== 'CE' && ( )} {!window.ddExtension && ( )} {process.env.PORTAINER_EDITION !== 'CE' && ( )} Help / About )} ); }