'use client'; import { faVideo, faExternalLinkAlt, faShareAlt } from "@fortawesome/free-solid-svg-icons"; import { faXTwitter } from '@fortawesome/free-brands-svg-icons'; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import Image from "next/legacy/image"; import Link from 'next/link'; import { IVod } from '@/app/lib/vods'; import { buildIpfsUrl } from '@/app/lib/ipfs'; import { getSafeDate } from "@/app/lib/dates"; import { StreamButton } from '@/app/components/stream-button'; import VtuberButton from "./vtuber-button"; import { LocalizedDate } from "./localized-date"; export function getDownloadLink(cid: string, safeDate: string, slug: string, quality: string) { return buildIpfsUrl(`${cid}?filename=${slug}-${safeDate}-${quality}.mp4`) } export interface IVodNavProps { vod: IVod; } export default function VodNav ({ vod }: IVodNavProps) { const safeDate = getSafeDate(vod.attributes.date2); return ( ) }