import { Link } from "@remix-run/react"; import IconClose from "~/images/icon-close.svg"; import { formatNumbers } from "~/lib/utils"; const API_URL = typeof document !== "undefined" ? window.ENV.API_URL : process.env.API_URL; type VideoPlayerProps = { selectedVideo: any; handleRemoveVideoPlayer?: () => void; isHome?: boolean; showStats?: boolean; }; const VideoPlayer = ({ selectedVideo, handleRemoveVideoPlayer, isHome = true, showStats = true, }: VideoPlayerProps) => { return ( <> {selectedVideo && (