import { Box, Clock, LayoutGrid, Layers, Puzzle, Edit } from 'lucide-react'; import { isBE } from '../portainer/feature-flags/feature-flags.service'; import { useSettings } from '../portainer/settings/queries'; import { SidebarItem } from './SidebarItem'; import { SidebarSection } from './SidebarSection'; import { SidebarParent } from './SidebarItem/SidebarParent'; export function EdgeComputeSidebar() { // this sidebar is rendered only for admins, so we can safely assume that settingsQuery will succeed const settingsQuery = useSettings(); if (!settingsQuery.data || !settingsQuery.data.EnableEdgeComputeFeatures) { return null; } const settings = settingsQuery.data; return ( {isBE && ( )} {isBE && !settings.TrustOnFirstConnect && ( )} ); }