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

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

        