mirror of
				https://github.com/langgenius/dify.git
				synced 2025-11-04 04:43:09 +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
 |