wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use client'
 
import { useRef } from 'react'
import { useScrollIntersection } from './hooks'
 
type IntersectionLineProps = {
  intersectionContainerId?: string
}
const IntersectionLine = ({
  intersectionContainerId,
}: IntersectionLineProps) => {
  const ref = useRef<HTMLDivElement>(null)
 
  useScrollIntersection(ref, intersectionContainerId)
 
  return (
    <div ref={ref} className='mb-4 h-[1px] shrink-0 bg-transparent'></div>
  )
}
 
export default IntersectionLine