import { formatDistanceToNow } from 'date-fns'; import type { Task } from '@/lib/types'; import { StatusPill } from '@/components/ui/status-pill'; type TaskFeedProps = { tasks: Task[]; }; const taskLabels: Record = { sync_filings: 'Sync filings', refresh_prices: 'Refresh prices', analyze_filing: 'Analyze filing', portfolio_insights: 'Portfolio insights' }; export function TaskFeed({ tasks }: TaskFeedProps) { if (tasks.length === 0) { return

No recent tasks.

; } return ( ); }