'use client'; import React from 'react'; import { Activity } from 'lucide-react'; import { Card } from '@/ui/Card'; import { Stack } from '@/ui/Stack'; import { Heading } from '@/ui/Heading'; import { Box } from '@/ui/Box'; import { Text } from '@/ui/Text'; import { Link } from '@/ui/Link'; interface FeedItem { id: string; headline: string; body?: string; formattedTime: string; ctaHref?: string; ctaLabel?: string; } interface ActivityFeedProps { items: FeedItem[]; hasItems: boolean; } export function ActivityFeed({ items, hasItems }: ActivityFeedProps) { return ( }> Recent Activity {hasItems ? ( {items.slice(0, 5).map((item) => ( {item.headline} {item.body && {item.body}} {item.formattedTime} {item.ctaHref && item.ctaLabel && ( {item.ctaLabel} )} ))} ) : ( No activity yet Join leagues and add friends to see activity here )} ); }