dify/web/app/components/plugins/marketplace/intersection-line/index.tsx

17 lines
317 B
TypeScript
Raw Normal View History

2024-10-12 12:46:29 +08:00
'use client'
import { useRef } from 'react'
import { useScrollIntersection } from './hooks'
2024-10-12 18:02:24 +08:00
const IntersectionLine = () => {
2024-10-12 12:46:29 +08:00
const ref = useRef<HTMLDivElement>(null)
2024-10-12 18:02:24 +08:00
useScrollIntersection(ref)
2024-10-12 12:46:29 +08:00
return (
2024-10-12 18:02:24 +08:00
<div ref={ref} className='mb-4 h-[1px] bg-transparent'></div>
2024-10-12 12:46:29 +08:00
)
}
export default IntersectionLine