MCPcopy Index your code
hub / github.com/ritz078/transform / FlowToJavascript

Function FlowToJavascript

pages/flow-to-javascript.tsx:7–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { Alert } from "evergreen-ui";
6
7export 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}

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…