'use client'; import { useRef, useEffect } from 'react'; import Link from 'next/link'; type Props = { locale: string; title: string; text: string; cta: string; }; export function BlogCTASection({ locale, title, text, cta }: Props) { const sectionRef = useRef(null); useEffect(() => { const section = sectionRef.current; if (!section) return; const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.querySelectorAll('.reveal').forEach((el, i) => { setTimeout(() => el.classList.add('visible'), i * 120); }); observer.unobserve(entry.target); } }); }, { threshold: 0.1 } ); observer.observe(section); return () => observer.disconnect(); }, []); return (

{title}

{text}

{cta}
); }