import * as l from "react";
function o(e) {
  var n = l.useRef(e);
  n.current = e;
  var c = l.useCallback(function() {
    for (var r, t = arguments.length, u = new Array(t), a = 0; a < t; a++)
      u[a] = arguments[a];
    return (r = n.current) === null || r === void 0 ? void 0 : r.call.apply(r, [n].concat(u));
  }, []);
  return e ? c : void 0;
}
export {
  o as default
};
