/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../_virtual/_rolldown/runtime.cjs");
let react = require("react");
//#region src/utils/hasDisplayName.ts
/**
* Checks whether a React element has a specific displayName.
* Handles both regular function components and forwardRef components
* (which have typeof type === 'object').
*/
function hasDisplayName(child, name) {
	if (!(0, react.isValidElement)(child)) return false;
	const type = child.type;
	return (typeof type === "function" || typeof type === "object" && type !== null) && "displayName" in type && type.displayName === name;
}
//#endregion
exports.hasDisplayName = hasDisplayName;
