"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _react = require("react");
require("./index.scss");
var ActivityRules = /*#__PURE__*/function (_Component) {
  (0, _inheritsLoose2["default"])(ActivityRules, _Component);
  function ActivityRules() {
    return _Component.apply(this, arguments) || this;
  }
  var _proto = ActivityRules.prototype;
  _proto.render = function render() {
    var rulesText = this.props.rulesText;
    var result = rulesText && rulesText.toString().split(/\n/g).filter(function (item) {
      return !!item;
    });
    return /*#__PURE__*/React.createElement("div", {
      className: "activity-rules"
    }, /*#__PURE__*/React.createElement("ul", null, result && result.length > 0 && result.map(function (item, index) {
      return /*#__PURE__*/React.createElement("li", {
        key: index
      }, item);
    })));
  };
  return ActivityRules;
}(_react.Component);
exports["default"] = ActivityRules;