import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import React, { useMemo } from "react";
import { Icon } from "@pisell/materials";
//#region src/pro/priceKeyboard/hooks/rightItems.tsx
const useRightItems = (props) => {
	const { rightItemsStyle, doneText, resetText } = props;
	return useMemo(() => {
		return [
			{
				value: "delete",
				label: /* @__PURE__ */ React.createElement(Icon, { type: "pisell2-delete" }),
				disabled: false,
				type: "text",
				style: _objectSpread2({
					color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || "#000000",
					backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || "#ffffff"
				}, (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.deleteButtonStyle) || {})
			},
			{
				value: "reset",
				label: resetText || "Reset",
				disabled: false,
				type: "text",
				style: _objectSpread2({
					fontSize: "18px",
					color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || "#D92D20",
					backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || "#ffffff"
				}, (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonStyle) || {})
			},
			{
				value: "done",
				label: doneText || "Done",
				disabled: false,
				type: "primary",
				size: 2,
				style: _objectSpread2({
					fontSize: "18px",
					background: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ? "var(--theme-color)" : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || "#5d3f9f",
					color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ? "#ffffff" : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || "#ffffff"
				}, (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonStyle) || {})
			}
		];
	}, [
		doneText,
		resetText,
		rightItemsStyle
	]);
};
//#endregion
export { useRightItems as default };
