MCPcopy Create free account
hub / github.com/decaporg/decap-cms / CodePreview

Function CodePreview

packages/decap-cms-widget-code/src/CodePreview.js:16–24  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

14}
15
16function CodePreview(props) {
17 return (
18 <WidgetPreviewContainer>
19 <pre>
20 <code>{toValue(props.value, props.field)}</code>
21 </pre>
22 </WidgetPreviewContainer>
23 );
24}
25
26CodePreview.propTypes = {
27 value: PropTypes.node,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected