The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
506 B

  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import classNames from 'classnames';
  4. export default class Icon extends React.PureComponent {
  5. static propTypes = {
  6. id: PropTypes.string.isRequired,
  7. className: PropTypes.string,
  8. fixedWidth: PropTypes.bool,
  9. };
  10. render () {
  11. const { id, className, fixedWidth, ...other } = this.props;
  12. return (
  13. <i role='img' className={classNames('fa', `fa-${id}`, className, { 'fa-fw': fixedWidth })} {...other} />
  14. );
  15. }
  16. }