()
| 31 | }: BodyEditorProps) { |
| 32 | const toast = useToast(); |
| 33 | function handleBeautifyClick() { |
| 34 | try { |
| 35 | if (!content) return; |
| 36 | const beautifiedBody = beautifyBody(content, contentType); |
| 37 | setContent(beautifiedBody); |
| 38 | } catch (e) { |
| 39 | errorToast('Could not format body.', toast); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | let editor = null; |
| 44 | switch (contentType) { |
nothing calls this directly
no test coverage detected