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("./Action.less");
//#region src/components/pisellDraggable/components/Action/Action.tsx
const _excluded = [
	"active",
	"className",
	"cursor",
	"style"
];
const Action = (0, react.forwardRef)((_ref, ref) => {
	let { active, className, cursor, style } = _ref, props = require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
	return /* @__PURE__ */ react.default.createElement("button", require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({ ref }, props), {}, {
		className: (0, classnames.default)("Action", className),
		tabIndex: 0,
		style: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, style), {}, {
			cursor,
			"--fill": active === null || active === void 0 ? void 0 : active.fill,
			"--background": active === null || active === void 0 ? void 0 : active.background
		})
	}));
});
//#endregion
exports.Action = Action;
