"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.TabContainerItem = 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"));
var _excluded = ["className", "tab", "key"];
var TabContainerItem = exports.TabContainerItem = function TabContainerItem(props) {
  var className = props.className,
    tab = props.tab,
    key = props.key,
    restProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
  return /*#__PURE__*/_react["default"].createElement(_tab["default"].Item, (0, _extends2["default"])({
    className: (0, _classnames["default"])(className, 'fusion-ui-tab')
  }, restProps, {
    title: tab,
    primaryKey: key
  }));
};
TabContainerItem.displayName = 'TabContainerItem';