"use strict";

exports.__esModule = true;
exports.default = void 0;

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

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

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * @category containers
 * @component list-separator
 * @variations collab-ui-react
 */
var ListSeparator = function ListSeparator(props) {
  var text = props.text;
  return _react.default.createElement("div", {
    className: "cui-list-separator" + ("" + (text ? ' cui-list-separator--text' : ''))
  }, text && _react.default.createElement("p", {
    className: "cui-list-separator__text"
  }, text));
};

ListSeparator.propTypes = {
  text: _propTypes.default.string
};
ListSeparator.defaultProps = {
  text: null
};
ListSeparator.displayName = 'ListSeparator';
var _default = ListSeparator;
exports.default = _default;