import Link from "next/link"; import { CardTags } from "@/components/common/card-tags"; import { DecryptedImage } from "@/components/common/decrypted-image"; import { EyeIcon, formatDay, HL_COVER, HL_COVER_IMG, HL_TITLE_LINK, HlBadge, } from "@/components/common/media-meta"; import type { ShortDramaItem } from "@/components/short-drama/data"; import { IMG_PLACEHOLDER } from "@/lib/image/decrypt"; export function videoHref(id: string, slug?: string | null) { return `/video/${(slug?.trim() || id).trim()}`; } /** 排行序号:No.01(琥珀色,放在标题前) */ function RankLabel({ rank, className = "" }: { rank?: number; className?: string }) { if (rank === undefined) return null; return ( No.{String(rank).padStart(2, "0")} ); } /** 视频卡元信息:观看数 + 发布日期 */ function VideoMeta({ item, className }: { item: ShortDramaItem; className: string }) { const day = formatDay(item.date); return (
{item.heat ? (