'use client' import Link from 'next/link' import { DashboardData, MappingsData, FindingsData } from '../_hooks/useComplianceHub' export function MappingsAndFindings({ dashboard, mappings, findings, }: { dashboard: DashboardData | null mappings: MappingsData | null findings: FindingsData | null }) { return (

Control-Mappings

Alle anzeigen →

{mappings?.total || 0}

Mappings gesamt

Nach Verordnung

{mappings?.by_regulation && Object.entries(mappings.by_regulation).slice(0, 5).map(([reg, count]) => ( {reg}: {count} ))} {!mappings?.by_regulation && ( Keine Mappings vorhanden )}

Automatisch generierte Verknuepfungen zwischen {dashboard?.total_controls || 0} Controls und {dashboard?.total_requirements || 0} Anforderungen aus {dashboard?.total_regulations || 0} Verordnungen.

Audit Findings

Audit Checkliste →
Hauptabweichungen

{findings?.open_majors || 0}

offen (blockiert Zertifizierung)

Nebenabweichungen

{findings?.open_minors || 0}

offen (erfordert CAPA)

Gesamt: {findings?.total || 0} Findings ({findings?.major_count || 0} Major, {findings?.minor_count || 0} Minor, {findings?.ofi_count || 0} OFI) {(findings?.open_majors || 0) === 0 ? ( Zertifizierung moeglich ) : ( Zertifizierung blockiert )}
) }