"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
;/* empty css                                                                                                                                                                                        */
;/* empty css                                                                                                                                                                                         */
;/* empty css                                                                                                                                                                                                 */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                            */
const index = require("../../primitive/Typography/index.cjs");
const index$1 = require("../../primitive/Button/index.cjs");
const Flex = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/Flex/Flex.cjs");
const FormActions = ({
  disabled,
  cancelProps,
  confirmProps,
  confirmText = "Confirm",
  cancelText = "Cancel",
  onCancel,
  onConfirm,
  loading,
  ...rest
}) => {
  const style = index.TYPOGRAPHY_STYLES_MAP["action-md"];
  return /* @__PURE__ */ jsxRuntime.jsxs(Flex.Flex, { justify: "flex-end", mt: 24, ...rest, children: [
    cancelText && /* @__PURE__ */ jsxRuntime.jsx(index$1.Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, ...cancelProps, children: cancelText }),
    /* @__PURE__ */ jsxRuntime.jsx(index$1.Button, { type: "submit", onClick: onConfirm, loading, disabled, ...confirmProps, children: confirmText })
  ] });
};
FormActions.displayName = "HookFormActions";
exports.FormActions = FormActions;
