"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _react = _interopRequireDefault(require("react"));
require("./css.less");
var _excluded = ["text", "color"];
var ProComponent = function ProComponent(props) {
  var _props$text = props.text,
    text = _props$text === void 0 ? '这是换行测试\n空格测试\t结束' : _props$text,
    _props$color = props.color,
    color = _props$color === void 0 ? '#000' : _props$color,
    others = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
  return /*#__PURE__*/_react["default"].createElement("pre", {
    style: {
      color: color
    }
  }, text || '-');
};
var _default = ProComponent;
exports["default"] = _default;