(component: any)
| 22 | * Checks if a given value is a forward ref component. |
| 23 | */ |
| 24 | export const isForwardRefComponent = (component: any): component is React.ForwardRefExoticComponent<any> => { |
| 25 | return typeof component === "object" && component !== null && component.$$typeof.toString() === "Symbol(react.forward_ref)"; |
| 26 | }; |
| 27 | |
| 28 | /** |
| 29 | * Checks if a given value is a valid React component. |