({
content,
filePath,
width,
}: Props)
| 15 | } |
| 16 | |
| 17 | export 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 | } |
nothing calls this directly
no test coverage detected