diff --git a/src/components/sections/hero/HeroExpand.tsx b/src/components/sections/hero/HeroExpand.tsx index e5f2eb3..7a5dc0c 100644 --- a/src/components/sections/hero/HeroExpand.tsx +++ b/src/components/sections/hero/HeroExpand.tsx @@ -1,53 +1,24 @@ -import { useState, useEffect, useCallback } from 'react'; -import { motion, AnimatePresence } from 'framer-motion'; - interface HeroExpandProps { title: string; description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; onComplete?: () => void; } -export default function HeroExpand({ title, description, onComplete }: HeroExpandProps) { - const [isExpanded, setIsExpanded] = useState(false); - - const handleComplete = useCallback(() => { - if (onComplete) onComplete(); - }, [onComplete]); - - useEffect(() => { - if (isExpanded) { - handleComplete(); - } - }, [isExpanded, handleComplete]); - +export default function HeroExpand({ title, description, primaryButton, secondaryButton, onComplete }: HeroExpandProps) { return (
- - {title} - +

{title}

{description}

- - - {isExpanded && ( - - Additional content revealed here! - - )} - +
+ + {primaryButton.text} + + + {secondaryButton.text} + +
); } \ No newline at end of file