"use strict";

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

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

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

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

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

var _components = require("@alicloudfe/components");

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

var BDesignButton = function BDesignButton(props) {
  var className = props.className,
      _props$size = props.size,
      size = _props$size === void 0 ? 'large' : _props$size,
      type = props.type,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size", "type"]);
  return /*#__PURE__*/_react.default.createElement(_components.Button, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-xs': size === "xs",
      'next-xl': size === "xl",
      'next-third': type === 'third'
    }),
    size: size,
    type: type
  }, rest));
};

BDesignButton.Group = _components.Button.Group;
var _default = BDesignButton;
exports.default = _default;