import { useRef } from "react"; import { useScroll, useTransform, motion } from "motion/react"; import Button from "@/components/ui/Button"; import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; type HeroBillboardScrollProps = { tag: string; title: string; description: string; primaryButton: { text: string; href: string }; secondaryButton: { text: string; href: string }; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); const HeroBillboardScroll = ({ tag, title, description, primaryButton, secondaryButton, imageSrc, videoSrc, }: HeroBillboardScrollProps) => { const containerRef = useRef(null); const { scrollYProgress } = useScroll({ target: containerRef }); const rotate = useTransform(scrollYProgress, [0, 1], [20, 0]); const scale = useTransform(scrollYProgress, [0, 1], [1.05, 1]); return (

{tag}

); }; export default HeroBillboardScroll;