// Generated with util/create-component.js import React from "react"; import YouTube from "react-youtube"; import { useMobileDetect } from "../../../hooks/useMobileDetect"; import { onReady, parseYoutubeLinkToParam, youtubeLinkToImage, } from "./youtube-video-functions"; import { YoutubeVideoProps } from "./YoutubeVideo.types"; const YoutubeVideo: React.FC = ({ isAppChannel = false, videoUrl, videoId, width, height, ...rest }) => { const { isMobile } = useMobileDetect(); const options = { width: width ?? "100%", height: height ?? (isMobile ? "200px" : "360px"), }; if (isAppChannel) { return ; } return (
); }; export default YoutubeVideo; const YoutubeVideoForApp = ({ videoUrl, options, }: { videoUrl: string; options: { width: string; height: string }; }) => { return (
); };