import*as n from"react";function t(n,t){if("function"==typeof n)return n(t);null!=n&&(n.current=t)}function r(...n){return r=>{let o=!1;const e=n.map((n=>{const e=t(n,r);return o||"function"!=typeof e||(o=!0),e}));if(o)return()=>{for(let r=0;r<e.length;r++){const o=e[r];"function"==typeof o?o():t(n[r],null)}}}}function o(...t){return n.useCallback(r(...t),t)}export{r as composeRefs,o as useComposedRefs};
//# sourceMappingURL=index.js.map
