/** * TrendingShows component - Grid/list of trending podcasts */ import { For, Show } from "solid-js" import type { Podcast } from "../types/podcast" import { PodcastCard } from "./PodcastCard" type TrendingShowsProps = { podcasts: Podcast[] selectedIndex: number focused: boolean isLoading: boolean onSelect?: (index: number) => void onSubscribe?: (podcast: Podcast) => void } export function TrendingShows(props: TrendingShowsProps) { return ( Loading trending shows... No podcasts found in this category. 0}> {(podcast, index) => ( props.onSelect?.(index())} onSubscribe={() => props.onSubscribe?.(podcast)} /> )} ) }