/** @license MIT | @cube-dev/ui-kit v0.115.0 | 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