import React from 'react' // 定义 props 的类型 interface IconComProps { type?: string; width?: number | string; height?: number | string; fill?: string; _style?: React.CSSProperties; } const IconCom: React.FC = (props: IconComProps = {}) => { // 样式content无效, https://www.iconfont.cn/collections/detail?spm=a313x.collections_index.i1.d9df05512.6d153a81fkRhvT&cid=9402 const { type = "", width = 20, height = 20, fill = "#1677FF", _style = {}, } = props; return (
{type == "user" && } {type == "code" && } {type == "search" && } {type == "sure" && } {type == "error" && } {type == "warn" && } {type == "info" && }
) } export default IconCom