/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-f1f3d22 | Cube Dev Team */
//#region src/tasty/utils/get-display-name.ts
const DEFAULT_NAME = "Anonymous";
function getDisplayName(Component, fallbackName = DEFAULT_NAME) {
	if (typeof Component === "function") return Component.displayName ?? Component.name ?? fallbackName;
	return fallbackName;
}

//#endregion
export { getDisplayName };
//# sourceMappingURL=get-display-name.js.map