MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / insertFile

Function insertFile

src/ui/components/InputBox.tsx:106–111  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

104 }
105
106 const insertFile = (file: string) => {
107 if (!atToken) return
108 const next = `${value.slice(0, atToken.start)}@${file} ${value.slice(cursor)}`
109 setValue(next)
110 setCursor(atToken.start + file.length + 2)
111 }
112
113 useInput(
114 (input, key) => {

Callers 1

InputBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected