diff --git a/src/components/sections/hero/HeroVideoExpand.tsx b/src/components/sections/hero/HeroVideoExpand.tsx index d560375..a9e13fb 100644 --- a/src/components/sections/hero/HeroVideoExpand.tsx +++ b/src/components/sections/hero/HeroVideoExpand.tsx @@ -1,43 +1,17 @@ -import { useState, useEffect, useRef } from 'react'; - -interface HeroVideoExpandProps { - title: string; - description: string; - videoSrc: string; - onComplete?: () => void; -} - -export default function HeroVideoExpand({ title, description, videoSrc, onComplete }: HeroVideoExpandProps) { - const videoRef = useRef(null); - - useEffect(() => { - const video = videoRef.current; - if (!video) return; - - const handleEnded = () => { - if (onComplete) onComplete(); - }; - - video.addEventListener('ended', handleEnded); - return () => { - video.removeEventListener('ended', handleEnded); - }; - }, [onComplete]); +import { useState } from 'react'; +export default function HeroVideoExpand({ title, description, videoSrc, imageSrc }: { title: string; description: string; videoSrc?: string; imageSrc?: string }) { return ( -
-
+ ); -} +} \ No newline at end of file