'use client' import type { RoadmapData } from './types' import { BUCKET_LABELS, DOMAIN_LABELS } from './types' interface RoadmapTabProps { roadmap: RoadmapData | null } export function RoadmapTab({ roadmap }: RoadmapTabProps) { if (!roadmap) { return (
) } return (
{(['quick_wins', 'must_have', 'should_have', 'nice_to_have'] as const).map(bucketKey => { const meta = BUCKET_LABELS[bucketKey] const items = roadmap.buckets[bucketKey] || [] return (

{meta.label}

{items.length}
{items.length === 0 ? (

Keine Eintraege

) : ( items.map(item => (

{item.title}

{item.control_id} ยท {DOMAIN_LABELS[item.domain] || item.domain}
{item.days_overdue > 0 && (

{item.days_overdue}d ueberfaellig

)} {item.owner && (

{item.owner}

)}
)) )}
) })}
) }