import { ReactElement, ReactNode } from 'react';
/**
* Find the first child component with a matching static property
*
* **Search Depth:** This function only searches 1 level deep:
* - Direct children of the provided children
* - Direct children inside React.Fragment components (1 level of fragment nesting)
* - Does NOT recursively search nested fragments or deeply nested components
*
* **Styled Component Support:** Checks component.target and component.__emotion_base
* for styled() wrapped components.
*
* @example
* ```ts
* // ✅ Will find: Direct child
* findChild(