import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import { Tab } from "@alicloudfe/components";
import cls from "classnames";
import BDesignTheme from '../theme';

var BDesignTab = function BDesignTab(props) {
  var className = props.className,
      theme = props.theme,
      rest = _objectWithoutProperties(props, ["className", "theme"]);

  return /*#__PURE__*/React.createElement(BDesignTheme, {
    theme: theme
  }, function (theme) {
    return /*#__PURE__*/React.createElement(Tab, _extends({
      className: cls(className, {
        'next-tabs-blue': theme === "blue"
      })
    }, rest));
  });
};

BDesignTab.Item = Tab.Item; // TODO：后续确认下

BDesignTab.TabPane = Tab.TabPane;
export default BDesignTab;