import _Button from "@alifd/next/es/button";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["title", "href", "fontFamily", "component"];
import * as React from 'react';
var TextButton = function TextButton(_ref) {
  var _ref$title = _ref.title,
    title = _ref$title === void 0 ? '默认文字' : _ref$title,
    href = _ref.href,
    fontFamily = _ref.fontFamily,
    component = _ref.component,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  var _otherProps = otherProps || {};
  return /*#__PURE__*/React.createElement(_Button, _extends({}, _otherProps, {
    href: href,
    component: component,
    style: {
      fontFamily: fontFamily
    }
  }), title);
};
TextButton.displayName = 'TextButton';
export default TextButton;