import { Outlet, useParams } from "react-router-dom"; import { usePodcastQuery } from "../services/podcasts/podcast.hooks"; import { PodcastInfoCard } from "../components/podcast-info-card"; export function Podcast() { const { podcastId } = useParams<{ podcastId: string }>(); const { data: podcast } = usePodcastQuery(podcastId); if (!podcastId) { throw new Error( "No podcast ID provided, make sure the component is rendered inside a RouterProvider", ); } if (!podcast) { return