import "react";
import { jsx } from "../../../node_modules/.pnpm/@emotion_react@11.10.4_q4mq7tnhdumujvomvw24zx33y4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
import Select$1 from "../../../node_modules/.pnpm/@arco-design_web-react@2.40.1_biqbaboplfbrettd7655fr4n2y/node_modules/@arco-design/web-react/es/Select/select.js";
const Option = Select$1.Option;
const Select = ({
  options,
  type,
  ...props
}) => {
  const restProps = {
    placeholder: `\u8BF7\u9009\u62E9${props.label || props.title}`,
    ...type === "multipleSelect" ? {
      maxTagCount: 20,
      mode: "multiple"
    } : {},
    ...props
  };
  return /* @__PURE__ */ jsx(Select$1, {
    allowClear: true,
    ...restProps,
    children: options && options.map((option, index) => /* @__PURE__ */ jsx(Option, {
      value: option.value || option,
      children: option.label || option.title || option
    }, option.value || option))
  });
};
export {
  Select
};
//# sourceMappingURL=Select.js.map
