import { useUiTranslation as e } from "../../../i18n/useUiTranslation.js";
import { Button as t } from "../../atoms/button/Button.js";
import { jsx as n, jsxs as r } from "react/jsx-runtime";
//#region src/atomic/molecules/form-actions/FormActions.tsx
var i = ({ onCancel: i, cancelLabel: a, submitLabel: o, submitLoadingLabel: s, isSubmitting: c = !1, submitDisabled: l = !1, className: u, renderSubmitContent: d, submitButtonProps: f, cancelButtonProps: p }) => {
	let { t: m } = e(), h = a ?? m("common.actions.cancel"), g = o ?? m("common.actions.save"), _ = s ?? m("common.actions.saving"), { className: v, disabled: y, ...b } = p ?? {}, { className: x, disabled: S, ...C } = f ?? {}, w;
	w = d == null ? c ? _ : g : d(c);
	let T = !!y, E = !!l || c || S === !0;
	return /* @__PURE__ */ r("div", {
		className: u,
		children: [/* @__PURE__ */ n(t, {
			type: "button",
			variant: "text",
			onClick: i,
			disabled: T,
			className: v,
			...b,
			children: h
		}), /* @__PURE__ */ n(t, {
			type: "submit",
			variant: "primary",
			disabled: E,
			className: x,
			...C,
			children: w
		})]
	});
};
//#endregion
export { i as FormActions };

//# sourceMappingURL=FormActions.js.map