(childArray: React.ReactNode[])
| 49 | |
| 50 | /** Returns true when a paragraph contains 2+ images and no other content. */ |
| 51 | export function isImageOnlyParagraph(childArray: React.ReactNode[]): boolean { |
| 52 | const { imageChildren, nonImageChildren } = classifyChildren(childArray); |
| 53 | return imageChildren.length >= 2 && nonImageChildren.length === 0; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Returns true when a paragraph contains any image/video child. The custom |
no test coverage detected