/** @license MIT | @cube-dev/ui-kit v0.123.0 | Cube Dev Team */
import { deprecationWarning } from "../../utils/warnings.js";
import React, { useEffect } from "react";

//#region src/_internal/hooks/use-deprecation-warning.ts
function useDeprecationWarning(...args) {
	const didWarn = React.useRef(false);
	useEffect(() => {
		if (didWarn.current) return;
		didWarn.current = true;
		deprecationWarning(...args);
	}, [args[0]]);
}

//#endregion
export { useDeprecationWarning };
//# sourceMappingURL=use-deprecation-warning.js.map