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

var mergedConfig = /*#__PURE__*/mergeConfig(comboboxNewConfig, config);
var ComboboxNew = /*#__PURE__*/component(mergedConfig);
var ComboboxComponent = function ComboboxComponent(props, ref) {
  if (props.items) {
    return /*#__PURE__*/React.createElement(ComboboxNew, _extends({
      ref: ref
    }, props));
  }
  return /*#__PURE__*/React.createElement(Combobox$1, _extends({
    ref: ref
  }, props));
};
var Combobox = /*#__PURE__*/fixedForwardRef(ComboboxComponent);

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