import Image from "next/image"; /** Card media: banner image when set; otherwise course title on themed surface. */ export function CourseCardBanner({ title, bannerUrl, }: { title: string; bannerUrl?: string | null; }) { const hasBanner = Boolean(bannerUrl?.trim()); return (
{title}