'use client' /** * Compliance Hub Page (SDK Version - Zusatzmodul) * * Central compliance management dashboard with: * - Compliance Score Overview * - Quick Access to all compliance modules (SDK paths) * - Control-Mappings with statistics * - Audit Findings * - Regulations overview */ import { useComplianceHub } from './_hooks/useComplianceHub' import { QuickActions } from './_components/QuickActions' import { StatsRow, DomainChart } from './_components/StatsRow' import { MappingsAndFindings } from './_components/MappingsAndFindings' import { RegulationsTable } from './_components/RegulationsTable' export default function ComplianceHubPage() { const { dashboard, regulations, mappings, findings, loading, error, seeding, loadData, seedDatabase, } = useComplianceHub() const score = dashboard?.compliance_score || 0 const scoreColor = score >= 80 ? 'text-green-600' : score >= 60 ? 'text-yellow-600' : 'text-red-600' const scoreBgColor = score >= 80 ? 'bg-green-500' : score >= 60 ? 'bg-yellow-500' : 'bg-red-500' return (
{/* Title Card (Zusatzmodul - no StepHeader) */}

Compliance Hub

Zentrale Verwaltung aller Compliance-Anforderungen nach DSGVO, AI Act, BSI TR-03161 und weiteren Regulierungen.

{/* Error Banner */} {error && (
{error}
)} {/* Seed Button if no data */} {!loading && (dashboard?.total_controls || 0) === 0 && (

Keine Compliance-Daten vorhanden

Initialisieren Sie die Datenbank mit den Seed-Daten.

)} {/* Quick Actions */} {loading ? (
) : ( <> )}
) }