"use strict";

exports.__esModule = true;
exports.Spinner = void 0;

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

var _classnames = _interopRequireDefault(require("classnames"));

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

var Spinner = function Spinner(_ref) {
  var color = _ref.color;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: (0, _classnames.default)('smooth-spinner', color && color)
  }, /*#__PURE__*/_react.default.createElement("svg", {
    viewBox: "0 0 50 50"
  }, /*#__PURE__*/_react.default.createElement("circle", {
    className: "path",
    cx: "25",
    cy: "25",
    r: "20",
    fill: "none",
    strokeWidth: "5"
  })));
};

Spinner.displayName = 'Spinner';
var SpinnerDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  SpinnerDoc = require('./doc').doc(Spinner);
}

var SpinnerWrapper = SpinnerDoc || Spinner;
exports.Spinner = SpinnerWrapper;