/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-e634e55 | Cube Dev Team */
import { useLayoutEffect as useLayoutEffect$1 } from "../../utils/react/useLayoutEffect.js";
import { useRef } from "react";

//#region src/_internal/hooks/use-sync-ref.ts
function useSyncRef(value) {
	const ref = useRef(value);
	useLayoutEffect$1(() => {
		ref.current = value;
	});
	return ref;
}

//#endregion
export { useSyncRef };
//# sourceMappingURL=use-sync-ref.js.map