const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../FilterItem/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
//#region src/components/filter/components/QuickFilter/index.tsx
const QuickFilter = (props) => {
	const { value, formFiltersPrefix } = props;
	const { quickFilter, notSortFilter } = value || {};
	const filterArr = (0, react.useMemo)(() => {
		return [...notSortFilter || [], ...quickFilter || []];
	}, [quickFilter, notSortFilter]);
	return /* @__PURE__ */ react.default.createElement(antd.Space, { wrap: true }, filterArr.map((item) => {
		var _item$name;
		const name = [formFiltersPrefix, (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.toString()].filter(Boolean);
		return /* @__PURE__ */ react.default.createElement(require_index.default, {
			key: name.join("-"),
			name,
			type: item.type,
			other: item.other,
			props: item.props,
			isHidden: item.isHidden
		});
	}));
};
//#endregion
exports.default = QuickFilter;
