const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
//#region src/pro/priceKeyboard/hooks/rightItems.tsx
const useRightItems = (props) => {
	const { rightItemsStyle, doneText, resetText } = props;
	return (0, react.useMemo)(() => {
		return [
			{
				value: "delete",
				label: /* @__PURE__ */ react.default.createElement(_pisell_materials.Icon, { type: "pisell2-delete" }),
				disabled: false,
				type: "text",
				style: require_objectSpread2._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: require_objectSpread2._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: require_objectSpread2._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
exports.default = useRightItems;
