import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const propTypes = { iconName: PropTypes.string.isRequired, prependIconName: PropTypes.string, }; const defaultProps = { prependIconName: 'icon-bbb-', }; export default class Icon extends Component { render() { const { className, prependIconName, iconName, ...otherProps } = this.props; return ( ); } } Icon.propTypes = propTypes; Icon.defaultProps = defaultProps;