()
| 553 | } |
| 554 | |
| 555 | const clearPreviews = () => { |
| 556 | // Revoke the data uris to avoid memory leaks |
| 557 | previews.forEach((file) => URL.revokeObjectURL(file.preview)) |
| 558 | setPreviews([]) |
| 559 | } |
| 560 | |
| 561 | const onMicrophonePressed = () => { |
| 562 | setIsRecording(true) |