MCPcopy Create free account
hub / github.com/Noumena-Network/code / FileContentPreview

Function FileContentPreview

src/components/FileContentPreview.tsx:17–27  ·  view source on GitHub ↗
({
  content,
  filePath,
  width,
}: Props)

Source from the content-addressed store, hash-verified

15}
16
17export function FileContentPreview({
18 content,
19 filePath,
20 width,
21}: Props): React.ReactNode {
22 if (shouldRenderFileContentAsMarkdown(filePath)) {
23 return <Markdown>{content}</Markdown>
24 }
25
26 return <HighlightedCode code={content} filePath={filePath} width={width} />
27}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected