()
| 5 | import { Alert } from "evergreen-ui"; |
| 6 | |
| 7 | export default function FlowToJavascript() { |
| 8 | const transformer = useCallback( |
| 9 | ({ value }) => request("/api/flow-to-javascript", value, "plain/text"), |
| 10 | [] |
| 11 | ); |
| 12 | |
| 13 | return ( |
| 14 | <ConversionPanel |
| 15 | transformer={transformer} |
| 16 | editorTitle="Flow" |
| 17 | editorLanguage="plaintext" |
| 18 | editorDefaultValue="flow" |
| 19 | resultTitle="JavaScript" |
| 20 | resultLanguage={"javascript"} |
| 21 | resultEditorProps={{ |
| 22 | topNotifications: () => ( |
| 23 | <Alert |
| 24 | backgroundColor="#e7f7ff" |
| 25 | title="This code is converted on the server." |
| 26 | /> |
| 27 | ) |
| 28 | }} |
| 29 | /> |
| 30 | ); |
| 31 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…