1 2 3 4 5 6 7 8 9 10 11 12 | 16x 2x 1x 1x 2x | import React from 'react' export default class Icon extends React.PureComponent { render () { const {className = '', type, ...props} = this.props return <i className={`fa fa-${type} fa-fw ${className}`} {...props} /> } } |