'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.UnorderedList = undefined;

var _classnames = require('classnames');

var _classnames2 = _interopRequireDefault(_classnames);

var _Common = {
  "inner-block": "Common__inner-block___2cOrF",
  "disable-inner-block": "Common__disable-inner-block___1MLd0",
  "components": "Common__components___2fQuj",
  "component": "Common__component___3bwMg",
  "hide": "Common__hide___2HyoH",
  "desc-text-color": "Common__desc-text-color___2fV3l",
  "desc-text-block": "Common__desc-text-block___1Z4b-",
  "text-link": "Common__text-link___1jaLy",
  "image": "Common__image___AKB6W",
  "imagediff": "Common__imagediff___2j7tX",
  "slideshow": "Common__slideshow___1Fz23",
  "embeddedcode": "Common__embeddedcode___3Avmp",
  "youtube": "Common__youtube___2oq1n",
  "topic-box": "Common__topic-box___2Q-kN"
};

var _Common2 = _interopRequireDefault(_Common);

var _UnorderedList = {
  "list": "UnorderedList__list___BKBKQ",
  "item": "UnorderedList__item___3dhoi"
};

var _UnorderedList2 = _interopRequireDefault(_UnorderedList);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

// eslint-disable-next-line

var UnorderedList = exports.UnorderedList = function UnorderedList(_ref) {
  var content = _ref.content;

  var cList = content && content[0].length > 0 ? content[0] : null;
  var bArr = [];

  if (!cList) {
    return null;
  }

  for (var i = 0; i < cList.length; i++) {
    bArr.push(_react2.default.createElement(
      'li',
      { key: i, className: _UnorderedList2.default.item },
      _react2.default.createElement('span', { dangerouslySetInnerHTML: { __html: cList[i] } })
    ));
  }

  return _react2.default.createElement(
    'ul',
    { className: (0, _classnames2.default)(_UnorderedList2.default.list, _Common2.default['inner-block'], 'text-justify') },
    bArr
  );
};