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>
		
			
				
	
	
		
			23 lines
		
	
	
		
			527 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			527 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 'use client'
 | |
| import type { FC } from 'react'
 | |
| import React from 'react'
 | |
| import { RiAddLine } from '@remixicon/react'
 | |
| import cn from '@/utils/classnames'
 | |
| 
 | |
| type Props = {
 | |
|   className?: string
 | |
|   onClick: () => void
 | |
| }
 | |
| 
 | |
| const AddButton: FC<Props> = ({
 | |
|   className,
 | |
|   onClick,
 | |
| }) => {
 | |
|   return (
 | |
|     <div className={cn(className, 'cursor-pointer select-none rounded-md p-1 hover:bg-state-base-hover')} onClick={onClick}>
 | |
|       <RiAddLine className='h-4 w-4 text-text-tertiary' />
 | |
|     </div>
 | |
|   )
 | |
| }
 | |
| export default React.memo(AddButton)
 |