/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-e980ce7
 * Released under the MIT license.
 */

import { useEvent } from './use-event.js';
export function useChainedCallback(...callbacks) {
    return useEvent((...args) => {
        callbacks.forEach((callback) => {
            if (typeof callback === 'function') {
                callback(...args);
            }
        });
    });
}

        