import { Box, Edit, Layers, Loader, Lock, Server } from 'react-feather'; import { EnvironmentId } from '@/portainer/environments/types'; import { Authorized } from '@/portainer/hooks/useUser'; import { DashboardLink } from '../items/DashboardLink'; import { SidebarItem } from '../SidebarItem'; import { VolumesLink } from '../items/VolumesLink'; import { useSidebarState } from '../useSidebarState'; import { KubectlShellButton } from './KubectlShell'; interface Props { environmentId: EnvironmentId; } export function KubernetesSidebar({ environmentId }: Props) { const { isOpen } = useSidebarState(); return ( <> {isOpen && (