"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.LoadingButtonIcon = void 0;var _react = _interopRequireDefault(require("react"));


var _LoadingIcon = require("../../internal/icons2022/LoadingIcon");

var _Button = require("./Button");
var _Button2 = require("./Button.styles");






var LoadingButtonIcon = exports.LoadingButtonIcon = function LoadingButtonIcon(_ref) {var size = _ref.size,_ref$isCentered = _ref.isCentered,isCentered = _ref$isCentered === void 0 ? true : _ref$isCentered;
  return /*#__PURE__*/(
    _react.default.createElement("div", { "data-tid": _Button.ButtonDataTids.spinner, className: isCentered ? _Button2.styles.loading() : undefined }, /*#__PURE__*/
    _react.default.createElement(_LoadingIcon.LoadingIcon, { size: size })
    ));

};