mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 22:47:15 +08:00
Co-authored-by: AkaraChen <akarachen@outlook.com> Co-authored-by: Yi <yxiaoisme@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: kurokobo <kuro664@gmail.com> Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com>
22 lines
463 B
TypeScript
22 lines
463 B
TypeScript
'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] bg-transparent'></div>
|
|
)
|
|
}
|
|
|
|
export default IntersectionLine
|