const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../select/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/customSelect/index.tsx
const CustomSelect = (props) => {
	const { options: propsOptions, value, onChange, renderItem } = props;
	const options = (0, react.useMemo)(() => {
		return propsOptions.map((option) => require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, option), {}, {
			label: renderItem ? renderItem(option) : option.label,
			value: option.value
		}));
	}, [propsOptions, renderItem]);
	return /* @__PURE__ */ react.default.createElement(require_index.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, {
		className: (0, classnames.default)("pisell-lowcode-custom-select", props.className),
		options,
		value,
		onChange
	}));
};
//#endregion
exports.default = CustomSelect;
