import { useTranslation } from "react-i18next"; import { Rows3, SquareStack } from "lucide-react"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/dialog"; import { SectionCard, SettingRow, FakeSwitch } from "@/components/section-card"; import type { HostDensity, HostSidebarPreferences, HostTrayTrigger, } from "@/types/host-sidebar-preferences"; export function CustomizeSidebarPanel({ open, onOpenChange, preferences, update, }: { open: boolean; onOpenChange: (v: boolean) => void; preferences: HostSidebarPreferences; update: ( patch: | Partial | ((prev: HostSidebarPreferences) => HostSidebarPreferences), ) => void; }) { const { t } = useTranslation(); return ( {t("hosts.customizeSidebar")} {t("hosts.customizeSidebarDescription")}
} > } > update((prev) => ({ ...prev, display: { ...prev.display, showTags: v }, })) } />
{t("hosts.actionsVisibility")} {t("hosts.actionsVisibilityDesc")}
update((prev) => ({ ...prev, display: { ...prev.display, openOnDoubleClick: v }, })) } /> update((prev) => ({ ...prev, display: { ...prev.display, statusColorScheme: v ? "status" : "accent", }, })) } />

{t("hosts.customizeSortHint")}

); }