import*as r from"react";var e={prefix:Math.round(1e10*Math.random()),current:0},t=r.createContext(e);function n(e,n){var o=r.useContext(t);return r.useMemo((()=>e||[n,o.prefix,++o.current].filter(Boolean).join("-")),[e,n])}function o(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];var u=n(e);return r.useMemo((()=>o.map((r=>r+"-"+u))),[u,o])}export{n as useId,o as useIds};
//# sourceMappingURL=use-id.js.map
