content: import React from 'react';
  import { string } from 'prop-types';
  import classNames from 'classnames';
  
  const Icon = ({ name, className, ...rest }) => {
    return (
      <i
        className={classNames(
          'icon',
          name.length ? `icon-${name}` : false,
          className
        )}
        {...rest}
      />
    );
  };
  
  /**
   * Icon property types.
   */
  Icon.propTypes = {
    /**
     * Icon name
     */
    name: string.isRequired,
  
    /***
     * Append extra class to Icon
     */
    className: string
  };
  
  /**
   * Icon default properties.
   */
  Icon.defaultProps = {
    name: '',
    className: ''
  };
  
  export default Icon;
  