mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
		
			318 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			318 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
|   | import type { FC } from 'react' | ||
|  | import React from 'react' | ||
|  | 
 | ||
|  | type IconProps = { | ||
|  |   icon: any | ||
|  |   className?: string | ||
|  |   [key: string]: any | ||
|  | } | ||
|  | 
 | ||
|  | const Icon: FC<IconProps> = ({ icon, className, ...other }) => { | ||
|  |   return ( | ||
|  |     <img src={icon} className={`h-3 w-3 ${className}`} {...other} alt="icon" /> | ||
|  |   ) | ||
|  | } | ||
|  | 
 | ||
|  | export default Icon |