"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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

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

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

var _refresh = require("./refresh.css-rules");

function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

var RefreshIcon = function RefreshIcon(_ref) {
  var _ref$disabled = _ref.disabled,
      disabled = _ref$disabled === void 0 ? false : _ref$disabled;
  var theme = (0, _react.useContext)(_styledComponents.ThemeContext);
  return /*#__PURE__*/_react["default"].createElement("svg", {
    width: 24,
    height: 24,
    viewBox: "0 0 24 24",
    fill: "none",
    xmlns: "http://www.w3.org/2000/svg"
  }, /*#__PURE__*/_react["default"].createElement("path", {
    d: "M17.7 16c-1.3 1.8-3.4 3-5.7 3-2.7 0-5.1-1.6-6.2-3.9v2.1c0 .6-.4 1-1 1s-1-.4-1-1V13c0-.6.4-1 1-1H9c.6 0 1 .4 1 1s-.4 1-1 1H7.5c.8 1.8 2.5 3 4.5 3 1.7 0 3.1-.8 4-2.1.2-.3.5-.4.8-.4h.1c.8 0 1.3.9.8 1.5zm1.5-10c-.6 0-1 .4-1 1v1.9C17 6.6 14.7 5 12 5 9.6 5 7.5 6.2 6.3 8c-.4.6 0 1.5.8 1.5h.1c.3 0 .6-.2.8-.4.9-1.2 2.4-2.1 4-2.1 2.1 0 3.9 1.4 4.6 3.2H15c-.6 0-1 .4-1 1s.4 1 1 1h4.2c.6 0 1-.4 1-1V7c0-.6-.4-1-1-1z",
    fill: (0, _refresh.getFillColor)(theme),
    fillOpacity: disabled ? '0.4' : '1'
  }));
};

exports.RefreshIcon = RefreshIcon;
RefreshIcon.displayName = 'RefreshIcon';