"use client";
let react = require("react");
//#region packages/@mantine/hooks/src/utils/use-callback-ref/use-callback-ref.ts
function useCallbackRef(callback) {
	const callbackRef = (0, react.useRef)(callback);
	(0, react.useEffect)(() => {
		callbackRef.current = callback;
	});
	return (0, react.useMemo)(() => ((...args) => callbackRef.current?.(...args)), []);
}
//#endregion
exports.useCallbackRef = useCallbackRef;

//# sourceMappingURL=use-callback-ref.cjs.map