"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;
var _react = _interopRequireDefault(require("react"));
var _tabs = _interopRequireDefault(require("antd/lib/tabs"));
var _MyEmpty = _interopRequireDefault(require("../MyEmpty"));
var _excluded = ["tabsList", "content"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
function _default(props) {
  var _props$tabsList = props.tabsList,
    tabsList = _props$tabsList === void 0 ? [] : _props$tabsList,
    content = props.content,
    otherProps = _objectWithoutProperties(props, _excluded);
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, tabsList !== null && tabsList !== void 0 && tabsList.length ? /*#__PURE__*/_react["default"].createElement(_tabs["default"], _extends({
    destroyInactiveTabPane: true
  }, otherProps), tabsList === null || tabsList === void 0 ? void 0 : tabsList.map(function (item) {
    return /*#__PURE__*/_react["default"].createElement(_tabs["default"].TabPane, {
      tab: item.label,
      key: item.key
    }, !content && item.children);
  })) : /*#__PURE__*/_react["default"].createElement(_MyEmpty["default"], null), content || null);
}
//# sourceMappingURL=index.js.map
