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 && (
)} ); }; export default VideoPlayer; function SponsorBlock() { return ( <> {/*
*/}
{/* {% if video.sponsorblock.is_enabled %} */} {/* {% if video.sponsorblock.segments|length == 0 %} */}

This video doesn't have any sponsor segments added. To add a segment go to{" "} this video on YouTube {" "} and add a segment using the{" "} SponsorBlock {" "} extension.

{/* {% elif video.sponsorblock.has_unlocked %} */}

This video has unlocked sponsor segments. Go to{" "} this video on YouTube {" "} and vote on the segments using the{" "} SponsorBlock {" "} extension.

{/* {% endif %} */} {/* {% endif %} */}
); }