"use client"; import YouTubeFrame from "@/components/Utilities/YoutubeEmbed"; import React from "react"; import { useState, useEffect } from "react"; function Video() { const [windowWidth, setWindowWidth] = useState(0); useEffect(() => { setWindowWidth(window.innerWidth); }, []); return (
{/* Hero image */}
425 ? windowWidth > 800 ? 800 : 400 : 280 } height={!!windowWidth && windowWidth > 425 ? 500 : 240} />
); } export default Video;