'use client' import type { AlertItem } from './types' import { formatTimeAgo, getScoreBadge, getDecisionBadge } from './useAlertsData' interface InboxTabProps { inboxFilter: string setInboxFilter: (filter: string) => void filteredAlerts: AlertItem[] } export default function InboxTab({ inboxFilter, setInboxFilter, filteredAlerts }: InboxTabProps) { return (
{/* Filters */}
{['all', 'new', 'keep', 'review'].map((filter) => ( ))}
{/* Alerts Table */}
{filteredAlerts.map((alert) => ( ))}
Alert Topic Score Decision Zeit
{alert.title}

{alert.snippet}

{alert.topic_name} {getScoreBadge(alert.relevance_score)} {getDecisionBadge(alert.relevance_decision)} {formatTimeAgo(alert.fetched_at)}
) }