'use client' import Link from 'next/link' export interface RegulatoryNewsItemData { id: string headline: string summary: string legal_reference: string deadline: string days_remaining: number urgency: 'critical' | 'high' | 'medium' | 'low' affected: string action_required: string action_link: string regulation: string sanctions?: string } const URGENCY_STYLES = { critical: { badge: 'bg-red-100 text-red-700 border-red-200', border: 'border-l-red-500', icon: '🔴' }, high: { badge: 'bg-orange-100 text-orange-700 border-orange-200', border: 'border-l-orange-400', icon: '🟠' }, medium: { badge: 'bg-yellow-100 text-yellow-700 border-yellow-200', border: 'border-l-yellow-400', icon: '🟡' }, low: { badge: 'bg-gray-100 text-gray-600 border-gray-200', border: 'border-l-gray-300', icon: '🔵' }, } export function RegulatoryNewsCard({ item }: { item: RegulatoryNewsItemData }) { const style = URGENCY_STYLES[item.urgency] || URGENCY_STYLES.low return (

{item.headline}

{item.summary}

{item.legal_reference}

{item.sanctions && (

Sanktionen: {item.sanctions}

)}
{style.icon} {item.days_remaining} Tage {new Date(item.deadline).toLocaleDateString('de-DE')}
{item.affected} {item.action_link && ( Massnahme ergreifen → )}
) }