diff --git a/src/components/sections/hero/HeroVideoExpand.tsx b/src/components/sections/hero/HeroVideoExpand.tsx index abd44f0..ded84f7 100644 --- a/src/components/sections/hero/HeroVideoExpand.tsx +++ b/src/components/sections/hero/HeroVideoExpand.tsx @@ -1,62 +1,37 @@ -import { useState, useEffect, useCallback } from 'react'; -import { motion, AnimatePresence } from 'framer-motion'; +import { useState, useCallback } from 'react'; interface HeroVideoExpandProps { title: string; description: string; - videoUrl: string; - onComplete?: () => void; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; } -export default function HeroVideoExpand({ title, description, videoUrl, onComplete }: HeroVideoExpandProps) { +export default function HeroVideoExpand({ title, description, primaryButton, secondaryButton }: HeroVideoExpandProps) { const [isExpanded, setIsExpanded] = useState(false); - const handleComplete = useCallback(() => { - if (onComplete) onComplete(); - }, [onComplete]); - - useEffect(() => { - if (isExpanded) { - const timer = setTimeout(handleComplete, 3000); - return () => clearTimeout(timer); - } - }, [isExpanded, handleComplete]); - return (
- +

{title}

{description}

- - - - - {isExpanded && ( - setIsExpanded(false)} - > - - )} - +
+ + {primaryButton.text} + + +
+
+ {isExpanded && ( +
setIsExpanded(false)}> +
+

Video Player

+
+
+ )}
);