"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@prom-ui/core/BodyContext");function r(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var u=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=r(e);exports.useId=function(){if((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&"function"==typeof u.useId)return u.useId();var e=u.useContext(t.BodyContext).globalGetUseId,r=u.useRef();return r.current||(r.current=e()),r.current};
