import React from 'react';
import classNames from 'classnames';
interface IconProps extends React.HTMLAttributes<HTMLElement> {
  type: string;
}
export default function Icon({ type, className, ...props }: IconProps) {
  return <i {...props} className={classNames(`icon iconfont icon-${type}`, className)} />;
}
