import { useTranslation } from "react-i18next"; import { Database, FileKey, Network, ShieldCheck } from "lucide-react"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "@/components/dialog"; const accessItems = [ { key: "connections", icon: Network }, { key: "credentials", icon: FileKey }, { key: "storage", icon: Database }, { key: "services", icon: ShieldCheck }, ] as const; export function LegalDisclosure() { const { t } = useTranslation(); return (

{t("newUi.sidebar.userProfile.termsTitle")}

{t("newUi.sidebar.userProfile.termsIntro")}

{t("newUi.sidebar.userProfile.accessDisclosureTitle")}

{t("newUi.sidebar.userProfile.accessDisclosureIntro")}

{accessItems.map(({ key, icon: Icon }) => (
{t(`newUi.sidebar.userProfile.access.${key}.title`)}

{t(`newUi.sidebar.userProfile.access.${key}.description`)}

))}

{t("newUi.sidebar.userProfile.telemetryDisclosure")}

); } export function LegalDisclosureDialog({ open, onOpenChange, }: { open: boolean; onOpenChange: (open: boolean) => void; }) { const { t } = useTranslation(); return ( {t("newUi.sidebar.userProfile.sectionLegal")} {t("newUi.sidebar.userProfile.legalDescription")} ); }