const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../ButtonIcon/index.js");
const require_PopoverContent = require("./PopoverContent.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_icon_es_Rows01 = require("@pisell/icon/es/Rows01");
_pisell_icon_es_Rows01 = require_runtime.__toESM(_pisell_icon_es_Rows01);
//#region src/components/table/Actions/component/Group/index.tsx
const Group = (props) => {
	const { value, onChange, setting } = props;
	const { list } = setting;
	const content = (0, react.useMemo)(() => {
		return /* @__PURE__ */ react.default.createElement(require_PopoverContent.default, {
			columns: list,
			onChange,
			value
		});
	}, [list, value]);
	return /* @__PURE__ */ react.default.createElement(antd.Popover, {
		content,
		arrow: false,
		placement: "bottomRight",
		trigger: "click"
	}, /* @__PURE__ */ react.default.createElement(require_index.default, { isActive: !!(value === null || value === void 0 ? void 0 : value.length) }, /* @__PURE__ */ react.default.createElement(_pisell_icon_es_Rows01.default, { style: {
		cursor: "pointer",
		fontSize: 18
	} })));
};
//#endregion
exports.default = Group;
