import React from 'react'
import PropTypes from 'prop-types'
import { CX } from '../constants'
import Logo from './logo'
import Loading from './loading'
import VerifiedIcon from './verified_icon'
class Icon extends React.PureComponent {
render() {
const {
className,
id,
size,
minimizeLogo,
} = this.props
if (id === 'logo') {
if (minimizeLogo) {
return (
)
}
return
}
else if (id === 'loading') return
else if (id === 'verified') return
const additionalClasses = {}
additionalClasses.gfi = 1
additionalClasses[`gfi-${id}`] = 1
const classes = CX(className, additionalClasses)
return
}
}
Icon.propTypes = {
className: PropTypes.string,
id: PropTypes.string.isRequired,
size: PropTypes.string,
minimizeLogo: PropTypes.bool,
}
export default Icon