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.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/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
};
