'use client' import React, { useState, useEffect } from 'react' import { useSDK } from '@/lib/sdk' import { StepHeader, STEP_EXPLANATIONS } from '@/components/sdk/StepHeader' // ============================================================================= // TYPES // ============================================================================= interface Obligation { id: string title: string description: string source: string sourceArticle: string deadline: Date | null status: 'pending' | 'in-progress' | 'completed' | 'overdue' priority: 'critical' | 'high' | 'medium' | 'low' responsible: string linkedSystems: string[] } // ============================================================================= // COMPONENTS // ============================================================================= function ObligationCard({ obligation }: { obligation: Obligation }) { const priorityColors = { critical: 'bg-red-100 text-red-700', high: 'bg-orange-100 text-orange-700', medium: 'bg-yellow-100 text-yellow-700', low: 'bg-green-100 text-green-700', } const statusColors = { pending: 'bg-gray-100 text-gray-600 border-gray-200', 'in-progress': 'bg-blue-100 text-blue-700 border-blue-200', completed: 'bg-green-100 text-green-700 border-green-200', overdue: 'bg-red-100 text-red-700 border-red-200', } const statusLabels = { pending: 'Ausstehend', 'in-progress': 'In Bearbeitung', completed: 'Abgeschlossen', overdue: 'Ueberfaellig', } const daysUntilDeadline = obligation.deadline ? Math.ceil((obligation.deadline.getTime() - new Date().getTime()) / (1000 * 60 * 60 * 24)) : null return (
{obligation.description}
Diese Pflichten erfordern sofortige Aufmerksamkeit.
Erstellen Sie zuerst ein Use Case Assessment, um automatisch Pflichten abzuleiten.