diff --git a/src/components/podcast-info-card.tsx b/src/components/podcast-info-card.tsx index 22da262..d3b88c6 100644 --- a/src/components/podcast-info-card.tsx +++ b/src/components/podcast-info-card.tsx @@ -1,3 +1,6 @@ +import { Link, useParams } from "react-router-dom"; +import { Wrap } from "./wrap"; + type Props = { title: string; author: string; @@ -11,11 +14,23 @@ export function PodcastInfoCard({ description, imageURL, }: Props) { + const { episodeId, podcastId } = useParams<{ + episodeId?: string; + podcastId?: string; + }>(); + + const href = `/podcast/${podcastId}`; + const shouldWrapWithLink = !!episodeId; + return (
{description}