import classNames from "classnames"; import { addUnit } from "../../utils/format/unit"; import { mergeProps } from "../../utils/get-default-props"; import { IconProps } from "./PropsType"; export function Icon(p: IconProps) { const props = mergeProps(p, { fontSize: 16, }); const size = addUnit(props.fontSize); const iconClass = `icon-${props.name}`; // use svg // return ( // // ); // use iconfont return ( {})} > ); }