"use client";
import * as e from "react";
function c(t) {
  const r = e.useRef(t);
  return e.useEffect(() => {
    r.current = t;
  }), e.useMemo(() => (...u) => r.current?.(...u), []);
}
export {
  c as useCallbackRef
};
