import { createFromIconfontCN } from "@ant-design/icons";

const _IconFont = createFromIconfontCN({
  scriptUrl: ["//at.alicdn.com/t/c/font_4188978_evr8efp70uk.js"],
});

export const IconFont: React.FC<{
  type: string;
  size?: number;
  style?: React.CSSProperties;
}> = ({ type, size = 14, style }) => (
  <_IconFont type={type} style={{ ...style, fontSize: size }} />
);
