--- import { formatDuration, timeAgo, type Video } from "@/lib/videos"; interface Props { video: Video; /** grid: a 16:9 card, short: a 9:16 card, compact: a sidebar row */ layout?: "grid" | "short" | "compact"; now: number; eager?: boolean; } const { video, layout = "grid", now, eager = false } = Astro.props; ---
{video.thumbnail && ( )} {video.duration && {formatDuration(video.duration)}}

{video.title}