mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08: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
|