import _Select from "@alifd/next/es/select";
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["placeholder", "defaultValue", "value", "mode", "hasClear", "showSearch", "dataSource", "disabled", "size", "notFoundContent", "hasBorder", "hasArrow"];
/* eslint-disable @typescript-eslint/no-shadow */
import * as React from 'react';
import "./styles.less";
var MySelect = function MySelect(_ref) {
  var placeholder = _ref.placeholder,
    defaultValue = _ref.defaultValue,
    value = _ref.value,
    mode = _ref.mode,
    hasClear = _ref.hasClear,
    showSearch = _ref.showSearch,
    dataSource = _ref.dataSource,
    disabled = _ref.disabled,
    size = _ref.size,
    notFoundContent = _ref.notFoundContent,
    hasBorder = _ref.hasBorder,
    hasArrow = _ref.hasArrow,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  return /*#__PURE__*/React.createElement(_Select, _extends({
    popupClassName: "myselect",
    size: size,
    placeholder: placeholder,
    value: defaultValue,
    mode: mode,
    hasClear: hasClear,
    showSearch: showSearch,
    dataSource: dataSource,
    disabled: disabled,
    notFoundContent: notFoundContent,
    hasBorder: hasBorder,
    autoWidth: true,
    hasArrow: hasArrow
    //    style={style}
  }, otherProps));
};
export default MySelect;