"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.TabContainer = void 0;
var _tab = _interopRequireDefault(require("@alifd/next/lib/tab"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
require("./index.scss");
var _excluded = ["className"];
var TabContainer = exports.TabContainer = function TabContainer(props) {
  var className = props.className,
    restProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
  var CustomTabItem = function CustomTabItem(key, props) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      className: "navigation"
    }, key.title);
  };
  return /*#__PURE__*/_react["default"].createElement(_tab["default"], (0, _extends2["default"])({
    className: (0, _classnames["default"])(className, 'fusion-ui-tab')
  }, restProps, {
    tabRender: function tabRender(key, props) {
      return /*#__PURE__*/_react["default"].createElement(CustomTabItem, (0, _extends2["default"])({
        key: key
      }, props));
    }
  }));
};
TabContainer.displayName = 'TabContainer';