--- import RichText from "@/components/RichText.astro"; import VideoCard from "@/components/VideoCard.astro"; import VideoControls from "@/components/VideoControls.astro"; import { ArrowUpRightIcon, HeartIcon } from "@/components/icons"; import { isShort, timeAgo, upNext, type Video, type VideoLibrary } from "@/lib/videos"; interface Props { video: Video; library: VideoLibrary; now: number; } const { video, library, now } = Astro.props; const next = upNext(library.videos, video).filter((item) => !isShort(item)); // shorts sit three to a row in their own shelf, so none of them needs letterboxing const shorts = library.videos.filter(isShort).slice(0, 6); const longDate = new Date(video.date).toLocaleDateString("en", { month: "short", day: "numeric", year: "numeric" }); ---

{video.title}

{video.replies > 0 && {video.replies} {video.replies === 1 ? "reply" : "replies"}} {video.reposts > 0 && {video.reposts} {video.reposts === 1 ? "repost" : "reposts"}}

{video.description.length > 0 &&

}
{(next.length > 0 || shorts.length > 0) && ( )}