"use client"; import Image from 'next/image'; import { PodcastDto } from '../../../common/dtos/podcastDto'; import { useState } from 'react'; export default function PodcastCard({ imageUrl = "https://placehold.co/400", title, description, uploadDate, url, author, }: PodcastDto) { const [descriptionExpanded, setDescriptionExpanded] = useState(false), toggleExpand = () => { setDescriptionExpanded(!descriptionExpanded); }; return (
{title

{title}

{description}
{!descriptionExpanded && (
)}

By: {author}

Uploaded: {uploadDate}

Listen Now
); }