import { useEffect as t } from "react";
import { devUseWarning as i } from "../../_util/warning.mjs";
const n = {};
function a(r) {
  let {
    name: e
  } = r;
  const o = i("Form");
  t(() => {
    if (e)
      return n[e] = (n[e] || 0) + 1, process.env.NODE_ENV !== "production" && o(n[e] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
        n[e] -= 1;
      };
  }, [e]);
}
export {
  a as default
};
