/*
 * Author: chenruilong
 * Create Time: 2022/01/13
 * Description:
 */
import React from 'react';

interface Props {
  icon: string;
  className?: string;
}

export default (props: Props) => {
  const className = ['iconfont', `icon-${props.icon}`, props.className].filter((key) => key);
  return <i className={className.join(' ')} />;
};
