mirror of
https://github.com/langgenius/dify.git
synced 2025-07-18 23:02:25 +00:00
22 lines
472 B
TypeScript
22 lines
472 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='shrink-0 mb-4 h-[1px] bg-transparent'></div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default IntersectionLine
|