import { assignRef } from "./assignRef.js";
import { useCallbackRef } from "./useRef.js";
function useMergeRefs(refs, defaultValue) {
  return useCallbackRef(defaultValue || null, function(newValue) {
    return refs.forEach(function(ref) {
      return assignRef(ref, newValue);
    });
  });
}
export {
  useMergeRefs
};
//# sourceMappingURL=useMergeRef.js.map
