import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _Typography from "@alifd/next/es/typography";
var _excluded = ["content", "mark", "underline", "strong", "code", "style", "component"];
/* eslint-disable @typescript-eslint/no-shadow */
import * as React from 'react';
var Paragraph = _Typography.Paragraph;
var textBr = function textBr(_ref) {
  var content = _ref.content,
    mark = _ref.mark,
    underline = _ref.underline,
    strong = _ref.strong,
    code = _ref.code,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    component = _ref.component,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  // eslint-disable-next-line no-alert
  var _style = style || {};
  var _otherProps = otherProps || {};
  _style['word-wrap'] = "break-word";
  _style['white-space'] = "pre-wrap";
  _otherProps.style = _style;
  return /*#__PURE__*/React.createElement(Paragraph, _extends({
    mark: mark,
    underline: underline,
    strong: strong,
    code: code
  }, _otherProps), content);
};
textBr.displayName = 'textBr';
export default textBr;