import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import Sort from "../sort/index.js";
import React, { useMemo } from "react";
import { Form } from "antd";
//#region src/components/pisellSort/index.tsx
const _excluded = ["name", "hasForm"];
const PisellSort = (props) => {
	const { name, hasForm = true } = props, otherProps = _objectWithoutProperties(props, _excluded);
	const content = useMemo(() => {
		return /* @__PURE__ */ React.createElement(Form.Item, {
			name: name || "sort_key",
			noStyle: true
		}, /* @__PURE__ */ React.createElement(Sort, otherProps));
	}, [name, otherProps]);
	if (hasForm) return /* @__PURE__ */ React.createElement(Form, _objectSpread2({
		size: "large",
		layout: "vertical"
	}, otherProps), content);
	return content;
};
//#endregion
export { PisellSort as default };
