/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-d4ad2ea | Cube Dev Team */
import { useEvent } from "./use-event.js";

//#region src/_internal/hooks/use-chained-callback.ts
function useChainedCallback(...callbacks) {
	return useEvent((...args) => {
		callbacks.forEach((callback) => {
			if (typeof callback === "function") callback(...args);
		});
	});
}

//#endregion
export { useChainedCallback };
//# sourceMappingURL=use-chained-callback.js.map