import { c as n } from "./mergeProps-Dsl8k3Ig.es.js";
import { useEffect as a } from "react";
function f(r, i, d) {
  let o = n(() => {
    d && d(i);
  });
  a(() => {
    var t;
    let e = r == null || (t = r.current) === null || t === void 0 ? void 0 : t.form;
    return e?.addEventListener("reset", o), () => {
      e?.removeEventListener("reset", o);
    };
  }, [
    r,
    o
  ]);
}
export {
  f as $
};
//# sourceMappingURL=useFormReset-BGuIA_u2.es.js.map
