"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.SubTabsLine = exports.SubTabPane = void 0;
var _tslib = require("tslib");
var _antd = require("antd");
var _react = _interopRequireDefault(require("react"));
var _useSettings3 = _interopRequireDefault(require("../vm-hooks/useSettings"));
require("./style");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var TabPane = _antd.Tabs.TabPane;
var SubTabs = function SubTabs(props) {
  var _useSettings = (0, _useSettings3["default"])(),
    theme = _useSettings.theme;
  return /*#__PURE__*/_react["default"].createElement(_antd.Tabs, Object.assign({}, props, {
    className: "vtx-sub-tabs ".concat(theme, " ").concat(props.ghost || ''),
    type: "card"
  }), props.children);
};
var SubTabPane = exports.SubTabPane = function SubTabPane(props) {
  var subKey = props.subKey,
    children = props.children,
    ext = (0, _tslib.__rest)(props, ["subKey", "children"]);
  return /*#__PURE__*/_react["default"].createElement(TabPane, Object.assign({
    key: subKey
  }, ext, {
    className: "tab-pane"
  }), children);
};
var SubTabsLine = exports.SubTabsLine = function SubTabsLine(props) {
  var _useSettings2 = (0, _useSettings3["default"])(),
    theme = _useSettings2.theme;
  return /*#__PURE__*/_react["default"].createElement(_antd.Tabs, Object.assign({}, props, {
    className: "vtx-sub-tabs-line ".concat(theme)
  }), props.children);
};
var _default = exports["default"] = SubTabs;
//# sourceMappingURL=index.js.map
