import { r as e } from "../chunks/select-BON0S9Dr.js";
import { jsx as t } from "react/jsx-runtime";
import { getPresetOption as n } from "@ryuzaki13/react-foundation-lib/presets";
//#region src/preset-select/PresetSelect.tsx
function r({ options: r, value: i, onChange: a, getOptionDisabled: o, getOptionCode: s, getOptionAriaLabel: c, renderOption: l, renderValue: u, className: d, buttonClassName: f, optionsClassName: p, clearable: m, ...h }) {
	let g = n(i, r) ?? void 0;
	return /* @__PURE__ */ t(e, {
		...h,
		options: r,
		value: g,
		onChange: (e) => a(e?.id),
		getOptionKey: (e) => e.id,
		getOptionLabel: (e) => e.label,
		getOptionCode: s,
		getOptionDisabled: o,
		getOptionAriaLabel: c,
		renderOption: l,
		renderValue: u,
		className: d,
		buttonClassName: f,
		optionsClassName: p,
		clearable: m
	});
}
//#endregion
export { r as PresetSelect };

//# sourceMappingURL=index.js.map