import React from 'react';
import { horizontalTabItemConfig, horizontalIconTabItemConfig, verticalTabItemConfig, verticalIconTabItemConfig, component, mergeConfig, fixedForwardRef } from '@salutejs/plasma-new-hope/styled-components';
import { config as horizontalConfig } from './horizontal/HorizontalTabItem.config';
import { config as horizontalIconConfig } from './horizontal/HorizontalIconTabItem.config';
import { config as verticalConfig } from './vertical/VerticalTabItem.config';
import { config as verticalIconConfig } from './vertical/VerticalIconTabItem.config';
const mergedHorizontalTabItemConfig = mergeConfig(horizontalTabItemConfig, horizontalConfig);
const HorizontalTabItem = component(mergedHorizontalTabItemConfig);
const mergedHorizontalIconTabItemConfig = mergeConfig(horizontalIconTabItemConfig, horizontalIconConfig);
const HorizontalIconTabItem = component(mergedHorizontalIconTabItemConfig);
const mergedVerticalTabItemConfig = mergeConfig(verticalTabItemConfig, verticalConfig);
const VerticalTabItem = component(mergedVerticalTabItemConfig);
const mergedVerticalIconTabItemConfig = mergeConfig(verticalIconTabItemConfig, verticalIconConfig);
const VerticalIconTabItem = component(mergedVerticalIconTabItemConfig);
/**
 * Элемент списка, недопустимо использовать вне компонента Tabs.
 */ export const TabItem = fixedForwardRef((props, ref)=>{
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ React.createElement(VerticalTabItem, {
            ref: ref,
            ...props
        });
    }
    return /*#__PURE__*/ React.createElement(HorizontalTabItem, {
        ref: ref,
        ...props
    });
});
export const IconTabItem = fixedForwardRef((props, ref)=>{
    if (props.orientation === 'vertical') {
        return /*#__PURE__*/ React.createElement(VerticalIconTabItem, {
            ref: ref,
            ...props
        });
    }
    return /*#__PURE__*/ React.createElement(HorizontalIconTabItem, {
        ref: ref,
        ...props
    });
});
