import { useEffect, useState } from "react"; import { useParams } from "react-router-dom"; import VideoPlayer from "../components/VideoPlayer"; import VideoSidebar from "../components/VideoSidebar"; import { fetchVideo, formatRunTime } from "../api/client"; import type { VideoDetail } from "../types/video"; function getMapDisplayName(mapName: string): string { return mapName.replace(/_/g, " ").toUpperCase(); } function getMomUrl(mapName: string): string { return `https://dashboard.momentum-mod.org/maps/${mapName}`; } function SkeletonBlock({ className }: { className?: string }) { return (
); } function PageSkeleton() { return ({error}