From 0ef30b025901cd1bfba084cc59ae2caef60bb5c9 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 23 Jun 2026 20:45:53 +0000 Subject: [PATCH] Update src/components/sections/hero/HeroExpand.tsx --- src/components/sections/hero/HeroExpand.tsx | 38 +++++++++++++++------ 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/src/components/sections/hero/HeroExpand.tsx b/src/components/sections/hero/HeroExpand.tsx index 41ee081..e52371a 100644 --- a/src/components/sections/hero/HeroExpand.tsx +++ b/src/components/sections/hero/HeroExpand.tsx @@ -1,15 +1,33 @@ -import React, { useEffect } from 'react'; +import React from 'react'; interface HeroExpandProps { - onComplete?: () => void; + tag?: string; + title: string; + description?: string; + videoSrc?: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; } -export default function HeroExpand({ onComplete }: HeroExpandProps) { - useEffect(() => { - if (onComplete) { - onComplete(); - } - }, [onComplete]); - - return
Hero Component
; +export default function HeroExpand({ tag, title, description, videoSrc, primaryButton, secondaryButton }: HeroExpandProps) { + return ( +
+
+ {tag && {tag}} +

{title}

+ {description &&

{description}

} + {(primaryButton || secondaryButton) && ( +
+ {primaryButton && {primaryButton.text}} + {secondaryButton && {secondaryButton.text}} +
+ )} + {videoSrc && ( +
+
+ )} +
+
+ ); }