'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
var plasmaNewHope = require('@salutejs/plasma-new-hope');
var React = require('react');
var Combobox_config = require('./Combobox.config.js');
var Combobox$1 = require('./Legacy/Combobox.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

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

exports.Combobox = Combobox;
//# sourceMappingURL=Combobox.js.map
