MCPcopy Index your code
hub / github.com/anomalyco/opencode / File

Function File

packages/session-ui/src/components/file.tsx:1189–1195  ·  view source on GitHub ↗
(props: FileProps<T>)

Source from the content-addressed store, hash-verified

1187// ---------------------------------------------------------------------------
1188
1189export function File<T>(props: FileProps<T>) {
1190 if (props.mode === "text") {
1191 return <FileMedia media={props.media} fallback={() => TextViewer(props)} />
1192 }
1193
1194 return <FileMedia media={props.media} fallback={() => DiffViewer(props)} />
1195}

Callers 1

FileSSRFunction · 0.90

Calls 2

TextViewerFunction · 0.85
DiffViewerFunction · 0.70

Tested by

no test coverage detected