import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import React, { forwardRef } from "react";
import classNames from "classnames";
import "./Action.less";
//#region src/components/pisellDraggable/components/Action/Action.tsx
const _excluded = [
	"active",
	"className",
	"cursor",
	"style"
];
const Action = forwardRef((_ref, ref) => {
	let { active, className, cursor, style } = _ref, props = _objectWithoutProperties(_ref, _excluded);
	return /* @__PURE__ */ React.createElement("button", _objectSpread2(_objectSpread2({ ref }, props), {}, {
		className: classNames("Action", className),
		tabIndex: 0,
		style: _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
export { Action };
