import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { withWrap } from "../../utils/hoc.js";
import { useMemo } from "react";
import { Checkbox, Space } from "antd";
//#region src/components/checkbox/index.tsx
const _excluded = [
	"options",
	"direction",
	"optionType",
	"children"
];
const defaultArr = [];
const Group = (props) => {
	const { options = defaultArr, direction, optionType, children } = props, others = _objectWithoutProperties(props, _excluded);
	const checkbox = useMemo(() => {
		return options.map((option) => {
			return /* @__PURE__ */ React.createElement(Checkbox, {
				key: option === null || option === void 0 ? void 0 : option.value,
				value: option === null || option === void 0 ? void 0 : option.value,
				disabled: option === null || option === void 0 ? void 0 : option.disabled
			}, option === null || option === void 0 ? void 0 : option.label);
		});
	}, [options]);
	return /* @__PURE__ */ React.createElement(Checkbox.Group, others, /* @__PURE__ */ React.createElement(Space, { direction }, checkbox));
};
const Checkbox$1 = withWrap(Checkbox);
Checkbox$1.Group = Group;
//#endregion
export { Checkbox$1 as default };
