import type { RoadmapItem } from '../_types' import { itemStatusColors, itemStatusLabels, priorityColors, categoryLabels } from '../_constants' export function RoadmapItemsTable({ items, onStatusChange, onDelete, }: { items: RoadmapItem[] onStatusChange: (itemId: string, newStatus: string) => void onDelete: (itemId: string) => void }) { return (
{items.map(item => ( ))} {items.length === 0 && ( )}
Titel Kategorie Prioritaet Status Zustaendig Aufwand Aktion
{item.title}
{item.regulation_ref &&
{item.regulation_ref}
}
{categoryLabels[item.category] || item.category} {item.priority} {item.assignee_name || '-'} {item.department &&
{item.department}
}
{item.effort_days}d
Keine Items
) }