'use client' import type { Topic } from '../types' import { formatTimeAgo } from '../useAlertsData' interface TopicsTabProps { topics: Topic[] } export function TopicsTab({ topics }: TopicsTabProps) { return (

Feed Topics

{topics.map((topic) => (
{topic.is_active ? 'Aktiv' : 'Pausiert'}

{topic.name}

{topic.feed_url}

{topic.alert_count} Alerts
{formatTimeAgo(topic.last_fetched_at)}
))} {topics.length === 0 && (
Keine Topics konfiguriert
)}
) }