"use client"; import React, { Suspense } from "react"; import Link from "next/link"; import { useRouter, useSearchParams } from "next/navigation"; import { ShieldCheck, ScrollText, Building2, ListChecks, Eye, Inbox, Gauge, Timer, AlertTriangle } from "lucide-react"; import { useAuth } from "@/hooks/useAuth"; import { BackLink } from "@/components/shared/BackLink"; import { NoticeEditor } from "@/components/admin/privacy/NoticeEditor"; import { OperatorsPanel } from "@/components/admin/privacy/OperatorsPanel"; import { ConsentLogPanel, AccessLogPanel } from "@/components/admin/privacy/LogPanels"; import { ReadinessPanel } from "@/components/admin/privacy/ReadinessPanel"; import { RetentionPanel } from "@/components/admin/privacy/RetentionPanel"; import { BreachesPanel } from "@/components/admin/privacy/BreachesPanel"; const TABS = [ { key: "readiness", label: "Readiness", icon: Gauge }, { key: "notice", label: "Privacy notice", icon: ScrollText }, { key: "operators", label: "Operators", icon: Building2 }, { key: "retention", label: "Retention", icon: Timer }, { key: "consent", label: "Consent log", icon: ListChecks }, { key: "access", label: "Access log", icon: Eye }, { key: "breaches", label: "Breaches", icon: AlertTriangle }, ] as const; type TabKey = (typeof TABS)[number]["key"]; function PrivacyAdmin() { const { token } = useAuth(); const router = useRouter(); const params = useSearchParams(); const tab = (TABS.find(t => t.key === params.get("tab"))?.key || "readiness") as TabKey; return (

Privacy (POPIA)

Your privacy notice, the services that process personal information for you, and the records that show how it's handled. People's requests are on Data requests; the Information Officer is set in Site settings → Legal.

{TABS.map(t => { const Icon = t.icon; return ( ); })}
{token && (
{tab === "readiness" && } {tab === "notice" && } {tab === "operators" && } {tab === "retention" && } {tab === "consent" && } {tab === "access" && } {tab === "breaches" && }
)}
); } export default function PrivacyAdminPage() { return ( Loading…

}>
); }