import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import { Button } from "@alicloudfe/components";
import cls from "classnames";

var BDesignButton = function BDesignButton(props) {
  var className = props.className,
      size = props.size,
      type = props.type,
      rest = _objectWithoutProperties(props, ["className", "size", "type"]);

  return /*#__PURE__*/React.createElement(Button, _extends({
    className: cls(className, {
      'next-xs': size === "xs",
      'next-third': type === 'third'
    }),
    size: size,
    type: type
  }, rest));
};

BDesignButton.Group = Button.Group;
export default BDesignButton;