({
path,
result,
}: {
path: string
result: ReadFileResult
})
| 19 | import type { ReadFileResult } from './workspace/api' |
| 20 | |
| 21 | export function FileContentView({ |
| 22 | path, |
| 23 | result, |
| 24 | }: { |
| 25 | path: string |
| 26 | result: ReadFileResult |
| 27 | }): ReactElement { |
| 28 | if (result.kind === 'ok') return <DocBody path={path} content={result.content} /> |
| 29 | return <DocTombstone result={result} /> |
| 30 | } |
| 31 | |
| 32 | function DocBody({ path, content }: { path: string; content: string }): ReactElement { |
| 33 | const lower = path.toLowerCase() |
nothing calls this directly
no outgoing calls
no test coverage detected