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

const DEFAULT_NAME = 'Anonymous';
export function getDisplayName(Component, fallbackName = DEFAULT_NAME) {
    if (typeof Component === 'function') {
        return Component.displayName ?? Component.name ?? fallbackName;
    }
    return fallbackName;
}

        