"use client";
import * as React from "react";
import { NOOP } from "../../../utils/esm/empty.js";
const FormContext = /* @__PURE__ */ React.createContext({
  formRef: {
    current: {
      fields: /* @__PURE__ */ new Map()
    }
  },
  errors: {},
  clearErrors: NOOP,
  validationMode: "onSubmit",
  submitAttemptedRef: {
    current: false
  }
});
if (process.env.NODE_ENV !== "production") FormContext.displayName = "FormContext";
function useFormContext() {
  return React.useContext(FormContext);
}
export {
  FormContext,
  useFormContext
};
//# sourceMappingURL=FormContext.js.map
