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

import React, { useEffect } from 'react';
import { deprecationWarning } from '../../utils/warnings.js';
export function useDeprecationWarning(...args) {
    const didWarn = React.useRef(false);
    useEffect(() => {
        if (didWarn.current)
            return;
        didWarn.current = true;
        deprecationWarning(...args);
    }, [args[0]]);
}

        