"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _react = _interopRequireDefault(require("react"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _classnames = _interopRequireDefault(require("classnames"));

var _constants = require("../../constants");

// Copyright 1999-2020. Plesk International GmbH. All rights reserved.

/**
 * `Plaintext` component is used to show regular text, without any formatting options and ignoring html tags.
 * @since 0.0.42
 */
const Plaintext = ({
  baseClassName,
  className,
  children
}) => /*#__PURE__*/_react.default.createElement("pre", {
  className: (0, _classnames.default)(baseClassName, className)
}, children);

Plaintext.propTypes = {
  /**
   * Content of the Plaintext
   * @since 0.0.42
   */
  children: _propTypes.default.node.isRequired,

  /**
   * @ignore
   */
  className: _propTypes.default.string,

  /**
   * @ignore
   */
  baseClassName: _propTypes.default.string
};
Plaintext.defaultProps = {
  className: null,
  baseClassName: "".concat(_constants.CLS_PREFIX, "plaintext")
};
var _default = Plaintext;
exports.default = _default;