MCPcopy
hub / github.com/swagger-api/swagger-ui / render

Method render

src/core/components/curl.jsx:12–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 render() {
13 const { request, getComponent } = this.props
14 const curl = requestSnippetGenerator_curl_bash(request)
15 const SyntaxHighlighter = getComponent("SyntaxHighlighter", true)
16
17 return (
18 <div className="curl-command">
19 <h4>Curl</h4>
20 <div className="copy-to-clipboard">
21 <CopyToClipboard text={curl}><button/></CopyToClipboard>
22 </div>
23 <div>
24 <SyntaxHighlighter
25 language="bash"
26 className="curl microlight"
27 renderPlainText={({ children, PlainTextViewer }) => (
28 <PlainTextViewer className="curl">{children}</PlainTextViewer>
29 )}
30 >
31 {curl}
32 </SyntaxHighlighter>
33 </div>
34 </div>
35 )
36 }
37
38}

Callers

nothing calls this directly

Calls 2

getComponentFunction · 0.85

Tested by

no test coverage detected