'use client'; import { ReactNode } from 'react'; import useInView from '@/hooks/useInView'; interface AnimatedTextProps { children: ReactNode; className?: string; startClass?: string; finishClass?: string; threshold?: number; } export function AnimatedText({ children, className = '', startClass, finishClass, threshold, }: AnimatedTextProps) { const [ref, isVisible] = useInView({ threshold: threshold ?? 0.1, triggerOnce: true, }); return (
{children}
); }