'use client' import type { ToolStatus, ScanType } from '../types' import { TOOL_DESCRIPTIONS, TOOL_TO_SCAN_TYPE } from '../types' import { getStatusBadge } from '../useSecurityDashboard' interface ToolsTabProps { tools: ToolStatus[] scanning: string | null onRunScan: (scanType: ScanType) => void } export function ToolsTab({ tools, scanning, onRunScan }: ToolsTabProps) { return (
{tools.map(tool => { const info = TOOL_DESCRIPTIONS[tool.name.toLowerCase()] || { icon: '🔧', desc: 'Security Tool' } const scanType = TOOL_TO_SCAN_TYPE[tool.name.toLowerCase()] || 'all' return (
{info.icon}

{tool.name}

{info.desc}

{tool.installed ? 'Installiert' : 'Nicht installiert'}
Version: {tool.version || '-'}
Letzter Scan: {tool.last_run || 'Nie'}
Findings: {tool.last_findings}
) })}
) }