import FilterItem from "../FilterItem/index.js";
import React, { useMemo } from "react";
import { Space } from "antd";
//#region src/components/filter/components/QuickFilter/index.tsx
const QuickFilter = (props) => {
	const { value, formFiltersPrefix } = props;
	const { quickFilter, notSortFilter } = value || {};
	const filterArr = useMemo(() => {
		return [...notSortFilter || [], ...quickFilter || []];
	}, [quickFilter, notSortFilter]);
	return /* @__PURE__ */ React.createElement(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.createElement(FilterItem, {
			key: name.join("-"),
			name,
			type: item.type,
			other: item.other,
			props: item.props,
			isHidden: item.isHidden
		});
	}));
};
//#endregion
export { QuickFilter as default };
