dify/web/app/components/plugins/marketplace/intersection-line/index.tsx
2024-12-05 14:54:20 +08:00

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