'use client' import { useRef } from 'react' import { useScrollIntersection } from './hooks' type IntersectionLineProps = { containerRef: React.RefObject intersectedCallback: (isIntersecting: boolean) => void } const IntersectionLine = ({ containerRef, intersectedCallback, }: IntersectionLineProps) => { const ref = useRef(null) useScrollIntersection( containerRef, ref, intersectedCallback, ) return (
) } export default IntersectionLine