{"size": 705, "ext": "js", "max_stars_repo_path": "src/components/IconButton.js", "max_stars_repo_name": "simonrelet/betcoin-frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/IconButton.js", "max_issues_repo_name": "simonrelet/betcoin-frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/IconButton.js", "max_forks_repo_name": "simonrelet/betcoin-frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.3636363636, "max_line_length": 66, "alphanum_fraction": 0.6893617021}
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import injectSheet from 'react-jss';

const styles = {
  iconButton: {
    backgroundColor: 'transparent',
    border: 'none',
    color: 'inherit',
    cursor: 'pointer',
    fontSize: 'inherit',
    padding: 0,
  },
};

function IconButton(props) {
  const { children, classes, className } = props;
  return (
    <button className={classNames(classes.iconButton, className)}>
      {children}
    </button>
  );
}

IconButton.propTypes = {
  children: PropTypes.node.isRequired,
  classes: PropTypes.object.isRequired,
  className: PropTypes.string,
};

export default injectSheet(styles)(IconButton);
