'use client' import type { SeveritySummary, ScanType } from '../types' interface SecurityHeaderProps { overallStatus: { label: string; color: string } summary: SeveritySummary scanning: string | null onRunScan: (scanType: ScanType) => void } export function SecurityHeader({ overallStatus, summary, scanning, onRunScan }: SecurityHeaderProps) { return (

Security Status

{overallStatus.label}
Auto-Refresh aktiv
{/* Severity Summary */}
{([ { key: 'critical', border: 'border-red-500', text: 'text-red-600', label: 'Critical' }, { key: 'high', border: 'border-orange-500', text: 'text-orange-600', label: 'High' }, { key: 'medium', border: 'border-yellow-500', text: 'text-yellow-600', label: 'Medium' }, { key: 'low', border: 'border-green-500', text: 'text-green-600', label: 'Low' }, { key: 'info', border: 'border-blue-500', text: 'text-blue-600', label: 'Info' }, { key: 'total', border: 'border-slate-400', text: 'text-slate-700', label: 'Total' }, ] as const).map(({ key, border, text, label }) => (
{summary[key]}
{label}
))}
) }