const require_runtime = require("../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_index = require("../sort/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
//#region src/components/pisellSort/index.tsx
const _excluded = ["name", "hasForm"];
const PisellSort = (props) => {
	const { name, hasForm = true } = props, otherProps = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const content = (0, react.useMemo)(() => {
		return /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
			name: name || "sort_key",
			noStyle: true
		}, /* @__PURE__ */ react.default.createElement(require_index.default, otherProps));
	}, [name, otherProps]);
	if (hasForm) return /* @__PURE__ */ react.default.createElement(antd.Form, require_objectSpread2._objectSpread2({
		size: "large",
		layout: "vertical"
	}, otherProps), content);
	return content;
};
//#endregion
exports.default = PisellSort;
