import Image from "next/image"; import { cn, formatNumber } from "@/lib/utils"; import { Badge } from "../ui/badge"; import { RxClock } from "react-icons/rx"; import { HiOutlineUsers } from "react-icons/hi"; import { AspectRatio } from "@/components/ui/aspect-ratio"; import { Skeleton } from "@/components/ui/skeleton"; import { formatDate } from "@/lib/utils/dates"; type VideoCardProps = { card: { image: string; title: string; tags: string[]; starts?: number; status: "live" | "planned" | "ended"; ["total_participants"]?: number; }; className?: string; }; export default function VideoCard({ className, card }: VideoCardProps) { const startTime = card?.starts ? new Date(card.starts * 1000) : null; return (