import { Icon } from "umi";
const SvgIcon = props => {
  const { iconClass = "add", className, size, offsetX, fill, offsetY } = props;
  return (
    <Icon
      className={className}
      width={size}
      height={size}
      style={{
        position: "relative",
        top: `${offsetY}px`,
        left: `${offsetX}px`,
        fill,
      }}
      {...props}
      icon={`local:${iconClass}`}
    />
  );
};

export default SvgIcon;
