import clsx from 'clsx'; import { Home } from 'react-feather'; import { useUser } from '@/portainer/hooks/useUser'; import { useIsTeamLeader } from '@/portainer/users/queries'; import { usePublicSettings } from '@/portainer/settings/queries'; import styles from './Sidebar.module.css'; import { EdgeComputeSidebar } from './EdgeComputeSidebar'; import { EnvironmentSidebar } from './EnvironmentSidebar'; import { SettingsSidebar } from './SettingsSidebar'; import { SidebarItem } from './SidebarItem'; import { Footer } from './Footer'; import { Header } from './Header'; import { SidebarProvider } from './useSidebarState'; export function Sidebar() { const { isAdmin, user } = useUser(); const isTeamLeader = useIsTeamLeader(user) as boolean; const settingsQuery = usePublicSettings(); if (!settingsQuery.data) { return null; } const { EnableEdgeComputeFeatures, LogoURL } = settingsQuery.data; return ( /* in the future (when we remove r2a) this should wrap the whole app - to change root styles */ ); }