"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Checkmark = void 0;

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

var _styledComponents = require("styled-components");

var _checkmark = require("./checkmark.css-rules");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _Checkmark = function _Checkmark(_ref) {
  var theme = _ref.theme,
      _ref$inverted = _ref.inverted,
      inverted = _ref$inverted === void 0 ? false : _ref$inverted;
  return /*#__PURE__*/_react["default"].createElement("svg", {
    width: "22px",
    height: "22px",
    viewBox: "0 0 22 22",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, /*#__PURE__*/_react["default"].createElement("g", {
    stroke: "none",
    strokeWidth: "1",
    fill: "none",
    fillRule: "evenodd"
  }, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("rect", {
    stroke: (0, _checkmark.getBorderColor)(theme, inverted),
    fill: (0, _checkmark.getFillColor)(theme, inverted),
    x: "0.5",
    y: "0.5",
    width: "21",
    height: "21",
    rx: "11"
  }), /*#__PURE__*/_react["default"].createElement("polyline", {
    stroke: (0, _checkmark.getFontColor)(theme, inverted),
    strokeWidth: "2",
    points: "7 11.0784521 9.61976772 14 15 8"
  }))));
};

var Checkmark = (0, _styledComponents.withTheme)(_Checkmark);
exports.Checkmark = Checkmark;
Checkmark.displayName = 'Checkmark';