// src/utils/is-react-component.ts
var isFunctionComponent = (component) => {
  return typeof component === "function";
};
var isClassComponent = (component) => {
  return typeof component === "function" && typeof component === "function" && component.prototype !== void 0 && component.prototype !== null && (!!component.prototype.isReactComponent || !!component.prototype.render);
};
var isForwardRefComponent = (component) => {
  return typeof component === "object" && component !== null && "$$typeof" in component && component.$$typeof !== void 0 && component.$$typeof !== null && component.$$typeof.toString() === "Symbol(react.forward_ref)";
};
var isReactComponent = (component) => {
  return isFunctionComponent(component) || isForwardRefComponent(component) || isClassComponent(component);
};
export {
  isClassComponent,
  isForwardRefComponent,
  isFunctionComponent,
  isReactComponent
};
//# sourceMappingURL=is-react-component.js.map