"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.Correct = void 0;

var _iconBase = _interopRequireDefault(require("./icon-base"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _react = _interopRequireDefault(require("react"));

var _iconRoot = require("./icon-root");

var _styles = require("@material-ui/core/styles");

var styles = (0, _iconRoot.getStyles)('correct', '#f8ffe2', '#4aaf46');

var Emoji = function Emoji(_ref) {
  var className = _ref.className;
  return /*#__PURE__*/_react["default"].createElement("g", {
    transform: 'translate(1, 0)'
  }, /*#__PURE__*/_react["default"].createElement("path", {
    className: className,
    d: "M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2 c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z"
  }), /*#__PURE__*/_react["default"].createElement("rect", {
    x: "21.1",
    y: "13.1",
    className: className,
    width: "3.7",
    height: "4.7"
  }), /*#__PURE__*/_react["default"].createElement("rect", {
    x: "12.7",
    y: "13.1",
    className: className,
    width: "3.7",
    height: "4.7"
  }));
};

Emoji.propTypes = {
  className: _propTypes["default"].string
};
Emoji.defaultProps = {
  x: 0
};

var Check = function Check(_ref2) {
  var className = _ref2.className,
      x = _ref2.x,
      y = _ref2.y;
  return /*#__PURE__*/_react["default"].createElement("polygon", {
    transform: "translate(".concat(x, ", ").concat(y, ")"),
    className: className,
    points: "19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"
  });
};

Check.propTypes = {
  x: _propTypes["default"].number,
  y: _propTypes["default"].number,
  className: _propTypes["default"].string
};
Check.defaultProps = {
  x: 0,
  y: 0
};
var Correct = (0, _iconBase["default"])(Check, Emoji);
exports.Correct = Correct;
Correct.propTypes = {
  iconSet: _propTypes["default"].oneOf(['emoji', 'check']),
  shape: _propTypes["default"].oneOf(['round', 'square']),
  category: _propTypes["default"].oneOf(['feedback', undefined]),
  open: _propTypes["default"].bool
};
Correct.defaultProps = {
  iconSet: 'check',
  shape: 'round',
  category: undefined,
  open: false
};

var _default = (0, _styles.withStyles)(styles)(Correct);

exports["default"] = _default;
//# sourceMappingURL=correct-icon.js.map