import { ReactNode, useRef } from 'react'; import { useNavigate } from 'react-router-dom'; type ScrollLockedSectionProps = { id: string; eyebrow: string; title: ReactNode; description: ReactNode; showButton?: boolean; buttonText?: string; buttonLink?: string; }; export const ScrollLockedSection = ({ id, eyebrow, title, description, showButton = true, buttonText = 'Directory Info', buttonLink, }: ScrollLockedSectionProps) => { const navigate = useNavigate(); const sectionRef = useRef(null); return (
{/* Text Section - Takes ~20% of vertical space */}
{eyebrow}

{title}

{description}

{/* Animation Section - Takes ~80% of vertical space */}
{/* Button below animation card */} {showButton && buttonLink && (
{buttonLink.startsWith('http') ? ( {buttonText} ) : ( )}
)}
); };