'use client'; import { cn } from '@/utils/cn'; import { useEffect, useRef } from 'react'; type Props = { className?: string; children: React.ReactNode; }; export function FadeIn({ className, children }: Props) { const ref = useRef(null); useEffect(() => { if (ref.current) { ref.current.classList.remove('opacity-0'); ref.current.classList.add('opacity-100'); } }, []); return (
{children}
); }