import * as e from "react";
import { useLayoutEffect as a } from "../../../../../@radix-ui_react-use-layout-effect@1.1.0_@types_react@18.3.3_react@18.3.0-canary-3d9b20132-20240124/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
var s = e.useId || (() => {
}), i = 0;
function d(o) {
  const [t, r] = e.useState(s());
  return a(() => {
    r((u) => u ?? String(i++));
  }, [o]), t ? `radix-${t}` : "";
}
export {
  d as useId
};
//# sourceMappingURL=index.js.map
