(child: any)
| 898 | } |
| 899 | |
| 900 | function getTextLikeValue(child: any): string | null { |
| 901 | if (child.type === "JSXText") return child.value; |
| 902 | if (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral") { |
| 903 | return String(child.expression.value ?? ""); |
| 904 | } |
| 905 | return null; |
| 906 | } |
| 907 | |
| 908 | function setTextLikeValue(child: any, value: string): void { |
| 909 | if (child.type === "JSXText") { |
no outgoing calls
no test coverage detected