'use client' import { Escalation, priorityColors, priorityLabels, statusColors, statusLabels, categoryLabels, formatDate } from './types' interface CardProps { escalation: Escalation onClick: () => void } export function EscalationCard({ escalation, onClick }: CardProps) { return (
{priorityLabels[escalation.priority]} {escalation.category && ( {categoryLabels[escalation.category] || escalation.category} )} {statusLabels[escalation.status]}

{escalation.title}

{escalation.description && (

{escalation.description}

)}
{escalation.assignee && (
Zugewiesen: {escalation.assignee}
)} {escalation.due_date && (
Frist: {formatDate(escalation.due_date)}
)}
Erstellt: {formatDate(escalation.created_at)}
{escalation.id}
) }