const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_PopoverContent = require("./PopoverContent.js");
const require_index = require("../ButtonIcon/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _ant_design_icons = require("@ant-design/icons");
//#region src/components/table/Actions/component/ColumnsSetting/index.tsx
const ColumnsSetting = (props) => {
	const { value, onChange } = props;
	const content = (0, react.useMemo)(() => {
		return /* @__PURE__ */ react.default.createElement(require_PopoverContent.default, {
			value,
			onChange
		});
	}, [value, onChange]);
	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.filter((item) => !item.isShow).length) }, /* @__PURE__ */ react.default.createElement(_ant_design_icons.EyeOutlined, { style: {
		cursor: "pointer",
		fontSize: 18
	} })));
};
//#endregion
exports.default = ColumnsSetting;
