(child: any)
| 890 | } |
| 891 | |
| 892 | function isEmptyTextLikeChild(child: any): boolean { |
| 893 | if (child.type === "JSXText") return child.value === ""; |
| 894 | if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") { |
| 895 | return String(child.expression.value ?? "") === ""; |
| 896 | } |
| 897 | return false; |
| 898 | } |
| 899 | |
| 900 | function getTextLikeValue(child: any): string | null { |
| 901 | if (child.type === "JSXText") return child.value; |
no outgoing calls
no test coverage detected