import { useTranslation } from "react-i18next"; import { Tooltip } from "@/components/Tooltip.tsx"; import { VerticalTabs } from "@/components/VerticalTabs.tsx"; import { UpdateBadge } from "@/modules/auto-update/UpdateBadge.tsx"; import { useClientVersion } from "@/contexts/ClientVersionContext.tsx"; import { useRestrictions } from "@/contexts/RestrictionsContext.tsx"; import { BoltIcon, InfoIcon, LifeBuoyIcon, MonitorIcon, NetworkIcon, ShieldIcon, SlidersHorizontalIcon, SquareTerminalIcon, UserCircleIcon, } from "lucide-react"; export const SettingsNavigation = () => { const { t } = useTranslation(); const { updateAvailable } = useClientVersion(); const { mdm, features } = useRestrictions(); const showSsh = mdm.allowServerSSH ?? !features.disableUpdateSettings; const showVnc = mdm.allowServerVNC ?? !features.disableUpdateSettings; const aboutAdornment = updateAvailable ? ( ) : undefined; return (
{!features.disableUpdateSettings && ( <> )} {!features.disableProfiles && ( )} {showSsh && ( )} {showVnc && ( )} {!features.disableUpdateSettings && ( )}
); };