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

Function state

packages/tui/src/feature-plugins/system/plugins.tsx:11–21  ·  view source on GitHub ↗
(api: TuiPluginApi, item: TuiPluginStatus)

Source from the content-addressed store, hash-verified

9const id = "internal:plugin-manager"
10
11function state(api: TuiPluginApi, item: TuiPluginStatus) {
12 if (!item.enabled) {
13 return <span style={{ fg: api.theme.current.textMuted }}>disabled</span>
14 }
15
16 return (
17 <span style={{ fg: item.active ? api.theme.current.success : api.theme.current.error }}>
18 {item.active ? "active" : "inactive"}
19 </span>
20 )
21}
22
23function source(spec: string) {
24 if (!spec.startsWith("file://")) return

Callers 2

rowFunction · 0.70
ViewFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected