import { jsxs, jsx } from "react/jsx-runtime";
/* empty css                                                                                                                                                                                       */
/* empty css                                                                                                                                                                                        */
/* empty css                                                                                                                                                                                                */
/* empty css                                                                                                                                                                                           */
/* empty css                                                                                                                                                                                           */
import { TYPOGRAPHY_STYLES_MAP } from "../../primitive/Typography/index.mjs";
import { Button } from "../../primitive/Button/index.mjs";
import { Flex } from "../../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.mjs";
const FormActions = ({
  disabled,
  cancelProps,
  confirmProps,
  confirmText = "Confirm",
  cancelText = "Cancel",
  onCancel,
  onConfirm,
  loading,
  ...rest
}) => {
  const style = TYPOGRAPHY_STYLES_MAP["action-md"];
  return /* @__PURE__ */ jsxs(Flex, { justify: "flex-end", mt: 24, ...rest, children: [
    cancelText && /* @__PURE__ */ jsx(Button, { onClick: onCancel, mr: 16, variant: "default", fw: style.fw, fs: style.fs, ...cancelProps, children: cancelText }),
    /* @__PURE__ */ jsx(Button, { type: "submit", onClick: onConfirm, loading, disabled, ...confirmProps, children: confirmText })
  ] });
};
FormActions.displayName = "HookFormActions";
export {
  FormActions
};
