{"size": 998, "ext": "js", "max_stars_repo_path": "es/components/FooterBar/Responses/Downvote.js", "max_stars_repo_name": "welovekpop/wlk.yt-client", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "es/components/FooterBar/Responses/Downvote.js", "max_issues_repo_name": "welovekpop/wlk.yt-client", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "es/components/FooterBar/Responses/Downvote.js", "max_forks_repo_name": "welovekpop/wlk.yt-client", "max_forks_repo_forks_event_min_datetime": "2017-07-06T23:26:04.000Z", "max_forks_repo_forks_event_max_datetime": "2017-08-07T19:36:12.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 2, "avg_line_length": 29.3529411765, "max_line_length": 62, "alphanum_fraction": 0.6983967936}
import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import DownvoteIcon from "@material-ui/icons/es/ThumbDown";
import Button from './Button';
var enhance = translate();

var Downvote = function Downvote(_ref) {
  var t = _ref.t,
      disabled = _ref.disabled,
      active = _ref.active,
      count = _ref.count,
      onDownvote = _ref.onDownvote;
  return _jsx(Button, {
    disabled: disabled,
    tooltip: t('votes.downvote'),
    onClick: onDownvote,
    count: count
  }, void 0, _jsx(DownvoteIcon, {
    className: active ? 'ResponseButton-icon--downvoted' : ''
  }));
};

Downvote.propTypes = process.env.NODE_ENV !== "production" ? {
  t: PropTypes.func.isRequired,
  onDownvote: PropTypes.func.isRequired,
  count: PropTypes.number.isRequired,
  disabled: PropTypes.bool,
  active: PropTypes.bool
} : {};
export default enhance(Downvote);
//# sourceMappingURL=Downvote.js.map
