import { FeedList } from '@/components/feed/FeedList'; import { LatestResultsSidebar } from '@/components/races/LatestResultsSidebar'; import { UpcomingRacesSidebar } from '@/components/races/UpcomingRacesSidebar'; import { Card } from '@/ui/Card'; import { Container } from '@/ui/Container'; import { Heading } from '@/ui/Heading'; import { Grid } from '@/ui/Grid'; import { Stack } from '@/ui/Stack'; import { Section } from '@/ui/Section'; import { Text } from '@/ui/Text'; import { DateDisplay } from '@/lib/display-objects/DateDisplay'; interface FeedItemData { id: string; type: string; headline: string; body?: string; timestamp: string; formattedTime: string; ctaHref?: string; ctaLabel?: string; } type FeedUpcomingRace = { id: string; track: string; car: string; scheduledAt: string | Date; }; type FeedLatestResult = { raceId: string; track: string; car: string; winnerName: string; scheduledAt: string | Date; }; interface FeedLayoutProps { feedItems: FeedItemData[]; upcomingRaces: FeedUpcomingRace[]; latestResults: FeedLatestResult[]; } export function FeedLayout({ feedItems, upcomingRaces, latestResults }: FeedLayoutProps) { const formattedUpcomingRaces = upcomingRaces.map(r => ({ ...r, formattedDate: DateDisplay.formatShort(r.scheduledAt), })); const formattedLatestResults = latestResults.map(r => ({ ...r, formattedDate: DateDisplay.formatShort(r.scheduledAt), })); return (
Activity See what your friends and leagues are doing right now.
); }