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

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

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