import _Button from "@alifd/next/es/button";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["title", "standards", "encoded", "controlType", "style", "customStyleName"];
import * as React from 'react';
var CommonButton = function CommonButton(_ref) {
  var _ref$title = _ref.title,
    title = _ref$title === void 0 ? '按钮' : _ref$title,
    _ref$standards = _ref.standards,
    standards = _ref$standards === void 0 ? 'primary' : _ref$standards,
    encoded = _ref.encoded,
    controlType = _ref.controlType,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    customStyleName = _ref.customStyleName,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _otherProps = otherProps || {};
  var isDisable = standards === 'normal' ? true : false;
  return /*#__PURE__*/React.createElement(_Button, _extends({
    style: style,
    className: customStyleName,
    type: standards,
    disabled: isDisable
  }, _otherProps), title);
};
CommonButton.displayName = 'CommonButton';
export default CommonButton;