import { TitleCard } from "@/components/title-card"; import { ScrollArea } from "@/components/ui/scroll-area"; interface TitleRowItem { tmdbId: number; type: "movie" | "tv"; title: string; posterPath: string | null; releaseDate: string | null; voteAverage: number; } interface TitleRowProps { heading: string; icon: React.ReactNode; items: TitleRowItem[]; userStatuses?: Record; episodeProgress?: Record; } export function TitleRow({ heading, icon, items, userStatuses, episodeProgress, }: TitleRowProps) { if (items.length === 0) return null; return (
{icon}

{heading}

{items.map((item, i) => (
))}
); }