import { o as t } from "./rolldown-runtime.js";
import { i as e } from "./vendor/react.js";
import { i as o } from "./useRenderElement.js";
var r = /* @__PURE__ */ t(e()), a = /* @__PURE__ */ r.createContext({
  formRef: { current: { fields: /* @__PURE__ */ new Map() } },
  errors: {},
  clearErrors: o,
  validationMode: "onSubmit",
  submitAttemptedRef: { current: !1 }
});
function s() {
  return r.useContext(a);
}
export {
  s as t
};

//# sourceMappingURL=FormContext.js.map