mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 02:42:59 +00:00 
			
		
		
		
	 7709d9df20
			
		
	
	
		7709d9df20
		
			
		
	
	
	
	
		
			
			Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
		
			
				
	
	
		
			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='mb-4 h-[1px] shrink-0 bg-transparent'></div>
 | |
|   )
 | |
| }
 | |
| 
 | |
| export default IntersectionLine
 |