import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
import { fixedForwardRef, component, mergeConfig, carouselNewConfig } from '@salutejs/plasma-new-hope';
import React from 'react';
import { CarouselOld } from './Legacy/Carousel.js';
import { config } from './Carousel.config.js';

var mergedConfig = /*#__PURE__*/mergeConfig(carouselNewConfig, config);
var CarouselNew = /*#__PURE__*/component(mergedConfig);
var CarouselComponent = function CarouselComponent(props, ref) {
  if (typeof props.index === 'number') {
    return /*#__PURE__*/React.createElement(CarouselOld, _extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React.createElement(CarouselNew, _extends({
    ref: ref
  }, props));
};
var Carousel = /*#__PURE__*/fixedForwardRef(CarouselComponent);

export { Carousel };
//# sourceMappingURL=Carousel.js.map
