"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

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

var _eKrNode = _interopRequireDefault(require("./e-kr-node"));

var _krNode = _interopRequireDefault(require("./kr-node"));

var _krParentNode = _interopRequireDefault(require("./kr-parent-node"));

var _eTask = _interopRequireDefault(require("./e-node/e-task"));

var _eTaskLevel = _interopRequireDefault(require("./e-node/e-task-level2"));

var _eProject = _interopRequireDefault(require("./e-node/e-project"));

var _oChildNode = _interopRequireDefault(require("./o-child-node"));

var _oParentNode = _interopRequireDefault(require("./o-parent-node"));

var _defaultNode = _interopRequireDefault(require("./default-node"));

var _eEmpty = _interopRequireDefault(require("./e-node/e-empty"));

require("./index.css");

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function _default(node, level) {
  switch (node.nodeType) {
    case "e-kr":
      return /*#__PURE__*/_react["default"].createElement(_eKrNode["default"], _extends({}, node, {
        level: level
      }));

    case "kr":
      return /*#__PURE__*/_react["default"].createElement(_krNode["default"], _extends({}, node, {
        level: level
      }));

    case "kr-parent":
      return /*#__PURE__*/_react["default"].createElement(_krParentNode["default"], _extends({}, node, {
        level: level
      }));

    case "e-task":
      return /*#__PURE__*/_react["default"].createElement(_eTask["default"], _extends({}, node, {
        level: level
      }));

    case "e-task-level2":
      return /*#__PURE__*/_react["default"].createElement(_eTaskLevel["default"], _extends({}, node, {
        level: level
      }));

    case "e-project":
      return /*#__PURE__*/_react["default"].createElement(_eProject["default"], _extends({}, node, {
        level: level
      }));

    case "o-parent":
      return /*#__PURE__*/_react["default"].createElement(_oParentNode["default"], _extends({}, node, {
        level: level
      }));

    case "o-child":
      return /*#__PURE__*/_react["default"].createElement(_oChildNode["default"], _extends({}, node, {
        level: level
      }));

    case "e-empty":
      return /*#__PURE__*/_react["default"].createElement(_eEmpty["default"], _extends({}, node, {
        level: level
      }));

    case "default":
      return /*#__PURE__*/_react["default"].createElement(_defaultNode["default"], _extends({}, node, {
        level: level
      }));

    default:
  }
}