"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Tab = Tab;
exports.TabBar = TabBar;
exports.TabContainerLayer = TabContainerLayer;
exports.TabContent = TabContent;
exports.TabContext = TabContext;
exports.TabPanel = TabPanel;
exports["default"] = TabContainer;

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

var _tabModule = _interopRequireDefault(require("../tab/tab.module.css"));

var _getCompliedClassName3 = _interopRequireDefault(require("../../utils/getCompliedClassName"));

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

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function TabContainerLayer(props) {
  var _props$customClassNam = props.customClassName,
      customClassName = _props$customClassNam === void 0 ? {} : _props$customClassNam,
      children = props.children;
  var tabContainerClassName = (0, _getCompliedClassName3["default"])(customClassName, _defineProperty({}, _tabModule["default"].tabbase, true), _defineProperty({}, customClassName.tabbase, customClassName.tabbase));
  return /*#__PURE__*/_react["default"].createElement("div", {
    role: "tablist",
    className: tabContainerClassName
  }, children, " ");
}

function TabContainer(props) {
  return /*#__PURE__*/_react["default"].createElement(TabContainerLayer, null, " ", props.children, " ");
}

function TabContext(props) {
  return /*#__PURE__*/_react["default"].createElement(TabContainerLayer, null, " ", props.children, " ");
}

function TabBar(props) {
  return /*#__PURE__*/_react["default"].createElement("div", null, props.children);
}

function Tab(props) {
  return /*#__PURE__*/_react["default"].createElement("div", null, props.children);
}

function TabContent(props) {
  return /*#__PURE__*/_react["default"].createElement("div", null, props.children);
}

function TabPanel(props) {
  return /*#__PURE__*/_react["default"].createElement("div", null, props.children);
}