'use client'
import { GCIResult, GCIHistoryResponse, WeightProfile, MATURITY_INFO, getScoreRingColor } from '@/lib/sdk/gci/types'
import { ScoreCircle, MaturityBadge, AreaScoreBar } from './GCIHelpers'
export function OverviewTab({ gci, history, profiles, selectedProfile, onProfileChange }: {
gci: GCIResult
history: GCIHistoryResponse | null
profiles: WeightProfile[]
selectedProfile: string
onProfileChange: (p: string) => void
}) {
return (
{profiles.length > 0 && (
)}
Gesamt-Compliance-Index
Berechnet: {new Date(gci.calculated_at).toLocaleString('de-DE')}
{MATURITY_INFO[gci.maturity_level]?.description || ''}
Regulierungsbereiche
{gci.area_scores.map(area => (
))}
{history && history.snapshots.length > 0 && (
Verlauf
{history.snapshots.map((snap, i) => (
{snap.score.toFixed(0)}
{new Date(snap.calculated_at).toLocaleDateString('de-DE', { month: 'short' })}
))}
)}
Kritikalitaets-Multiplikator
{gci.criticality_multiplier.toFixed(2)}x
Incident-Korrektur
{gci.incident_adjustment > 0 ? '+' : ''}{gci.incident_adjustment.toFixed(1)}
)
}