import { motion } from 'framer-motion'; import { useEffect, useRef } from 'react'; function EnterVideo(props) { const opacity = props.opacity || 0; const vd = useRef(null); useEffect(() => { vd.current.addEventListener('ended', props.onVideoEnd); }, []); return ( ); } export default EnterVideo;