import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import React from 'react';
import { fixedForwardRef, component, mergeConfig, horizontalTabItemConfig, horizontalIconTabItemConfig, verticalTabItemConfig, verticalIconTabItemConfig } from '@salutejs/plasma-new-hope';
import { config } from './horizontal/HorizontalTabItem.config.js';
import { config as config$1 } from './horizontal/HorizontalIconTabItem.config.js';
import { config as config$2 } from './vertical/VerticalTabItem.config.js';
import { config as config$3 } from './vertical/VerticalIconTabItem.config.js';

var mergedHorizontalTabItemConfig = /*#__PURE__*/mergeConfig(horizontalTabItemConfig, config);
var HorizontalTabItem = /*#__PURE__*/component(mergedHorizontalTabItemConfig);
var mergedHorizontalIconTabItemConfig = /*#__PURE__*/mergeConfig(horizontalIconTabItemConfig, config$1);
var HorizontalIconTabItem = /*#__PURE__*/component(mergedHorizontalIconTabItemConfig);
var mergedVerticalTabItemConfig = /*#__PURE__*/mergeConfig(verticalTabItemConfig, config$2);
var VerticalTabItem = /*#__PURE__*/component(mergedVerticalTabItemConfig);
var mergedVerticalIconTabItemConfig = /*#__PURE__*/mergeConfig(verticalIconTabItemConfig, config$3);
var VerticalIconTabItem = /*#__PURE__*/component(mergedVerticalIconTabItemConfig);
/**
 * Элемент списка, недопустимо использовать вне компонента Tabs.
 */
var TabItem = /*#__PURE__*/fixedForwardRef(function (props, ref) {
  if (props.orientation === 'vertical') {
    return /*#__PURE__*/React.createElement(VerticalTabItem, _extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React.createElement(HorizontalTabItem, _extends({
    ref: ref
  }, props));
});
var IconTabItem = /*#__PURE__*/fixedForwardRef(function (props, ref) {
  if (props.orientation === 'vertical') {
    return /*#__PURE__*/React.createElement(VerticalIconTabItem, _extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React.createElement(HorizontalIconTabItem, _extends({
    ref: ref
  }, props));
});

export { IconTabItem, TabItem };
//# sourceMappingURL=TabItem.js.map
