MCPcopy Create free account
hub / github.com/anomalyco/opencode / params

Function params

packages/tui/src/feature-plugins/system/diff-viewer.tsx:95–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 const themeState = useTheme()
94 const theme = () => props.api.theme.current
95 const params = () =>
96 ("params" in props.api.route.current ? props.api.route.current.params : undefined) as
97 | {
98 mode?: DiffMode
99 sessionID?: string
100 messageID?: string
101 returnRoute?: TuiRouteCurrent
102 }
103 | undefined
104 const mode = () => params()?.mode ?? "git"
105 const diffInput = createMemo(() => {
106 const sessionID = params()?.sessionID

Callers 4

modeFunction · 0.85
DiffViewerFunction · 0.85
runFunction · 0.85
onSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected