diff --git a/src/components/podcast-info-card.tsx b/src/components/podcast-info-card.tsx new file mode 100644 index 0000000..8fb2df9 --- /dev/null +++ b/src/components/podcast-info-card.tsx @@ -0,0 +1,22 @@ +type Props = { + title: string; + author: string; + description: string; + imageURL: string; +}; + +export const PodcastInfoCard = ({ + title, + author, + description, + imageURL, +}: Props) => { + return ( +
+

{title}

+

{author}

+ {title} +

{description}

+
+ ); +}; diff --git a/src/pages/podcast.tsx b/src/pages/podcast.tsx index 4f9c404..ce63194 100644 --- a/src/pages/podcast.tsx +++ b/src/pages/podcast.tsx @@ -3,6 +3,7 @@ import { usePodcastEpisodesQuery, useTopPodcastsQuery, } from "../services/podcasts/podcast.hooks"; +import { PodcastInfoCard } from "../components/podcast-info-card"; export function Podcast() { const { podcastId } = useParams<{ podcastId: string }>(); @@ -28,12 +29,12 @@ export function Podcast() { // TODO: break into smaller components return (
-
-

{podcast.title}

-

{podcast.author}

- {podcast.title} -

{podcast.description}

-
+
Episodes: {episodesData?.podcast.trackCount}