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

Function kindLabel

packages/app/src/components/file-tree.tsx:63–67  ·  view source on GitHub ↗
(kind: Kind)

Source from the content-addressed store, hash-verified

61}
62
63const kindLabel = (kind: Kind) => {
64 if (kind === "add") return "A"
65 if (kind === "del") return "D"
66 return "M"
67}
68
69const kindTextColor = (kind: Kind) => {
70 if (kind === "add") return "color: var(--icon-diff-add-base)"

Callers 1

FileTreeNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected