import "core-js/modules/es.array.iterator.js";
import "core-js/modules/web.dom-collections.iterator.js";
import { useCallback, useRef } from 'react';
const useRefFunction = reFunction => {
  const ref = useRef(null);
  ref.current = reFunction;
  return useCallback((...rest) => {
    var _ref$current;
    return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.call(ref, ...rest);
  }, []);
};
export { useRefFunction };