(text: string)
| 503 | } |
| 504 | |
| 505 | const textToJson = (text: string) => { |
| 506 | return isJsonString(text) |
| 507 | ? JSON.stringify(JSON.parse(text), undefined, 2) |
| 508 | : text; |
| 509 | }; |
| 510 | |
| 511 | function JsonTextBox(props: JsonTextBoxProps) { |
| 512 | const [text, setText] = useState( |
no test coverage detected