const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(classnames);
require("./index.less");
//#region src/components/table/Actions/component/ButtonIcon/index.tsx
const _excluded = ["children", "isActive"];
const prefix = "pisell-lowcode-";
const ButtonIcon = (props) => {
	const { children, isActive } = props, others = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ react.default.createElement("div", require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, others), {}, { className: (0, classnames.default)(`${prefix}action-btn-icon`, { [`${prefix}action-btn-icon-active`]: isActive }) }), react.Children.map(children, (child) => {
		if ((0, react.isValidElement)(child)) {
			var _child$props;
			return (0, react.cloneElement)(child, { style: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, ((_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.style) || {}), {}, { color: isActive ? "#53389E" : "inherit" }) });
		}
		return child;
	}));
};
//#endregion
exports.default = ButtonIcon;
