import { Users, Award, Settings, HardDrive, Radio, FileText, Bell, } from 'lucide-react'; import { usePublicSettings } from '@/react/portainer/settings/queries'; import { isBE } from '@/react/portainer/feature-flags/feature-flags.service'; import { SidebarItem } from './SidebarItem'; import { SidebarSection } from './SidebarSection'; import { SidebarParent } from './SidebarItem/SidebarParent'; interface Props { isAdmin: boolean; isTeamLeader?: boolean; } export function SettingsSidebar({ isAdmin, isTeamLeader }: Props) { const teamSyncQuery = usePublicSettings({ select: (settings) => settings.TeamSync, }); const showUsersSection = !window.ddExtension && (isAdmin || (isTeamLeader && !teamSyncQuery.data)); return ( {showUsersSection && ( {isAdmin && ( )} )} {isAdmin && ( <> {isBE && ( )} )} {isAdmin && ( {!window.ddExtension && ( )} {isBE && ( )} Help / About )} ); } function EdgeUpdatesSidebarItem() { const settingsQuery = usePublicSettings(); if (!isBE || !settingsQuery.data?.EnableEdgeComputeFeatures) { return null; } return ( ); }