import PropTypes from 'prop-types' import React from 'react' import CSSModules from 'browser/lib/CSSModules' import styles from './StarButton.styl' import _ from 'lodash' import i18n from 'browser/lib/i18n' class StarButton extends React.Component { constructor(props) { super(props) this.state = { isActive: false } } handleMouseDown(e) { this.setState({ isActive: true }) } handleMouseUp(e) { this.setState({ isActive: false }) } handleMouseLeave(e) { this.setState({ isActive: false }) } render() { const { className } = this.props return ( ) } } StarButton.propTypes = { isActive: PropTypes.bool, onClick: PropTypes.func, className: PropTypes.string } export default CSSModules(StarButton, styles)