import { useState } from "react" import { motion } from "motion/react" interface HoverVideoProps { thumbnail: string // URL for the image videoSrc: string // URL for the video className?: string // Optional additional styling delay?: number // Optional delay for the animation } const HoverVideo: React.FC = ({ thumbnail, videoSrc, className, delay = 0, }) => { const [isHovered, setIsHovered] = useState(false) return ( setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} animate={{ opacity: 1 }} initial={{ opacity: 0 }} transition={{ duration: 0.2, ease: "easeOut", delay: delay }} > {/* Thumbnail */} {/* Video */} ) } export default HoverVideo