import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import type { LatestVideo } from "@/lib/video/video-platforms"; import { ExternalLink, PlaySquare } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; export function LatestCard({ title, videos, }: { title: string; videos: LatestVideo[]; }) { return ( {title} Most recent 10 published videos. {videos.length === 0 ? (

Connect the platform API to load videos.

) : ( videos.map((video) => (
{video.thumbnailUrl ? ( ) : ( )}
{video.title} )) )}
); }