import React from 'react'

export default class IconSet extends React.Component {
    render = () =>{
        return (<i 
            title={this.props.title}
            className={this.props.className} 
            style={{color: '#b2b2b2', fontSize: 16, cursor: "pointer"}} 
            onMouseOver={(e) => e.target.style.color="#66ccff"} 
            onMouseOut={(e) => e.target.style.color="#b2b2b2"} 
            onClick={() => {
              if(this.props.onClick && typeof(this.props.onClick) === "function") {
                this.props.onClick();
              }
            }} 
        />)
    }
}