MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / getMode

Function getMode

apps/web/ui/MessageForm/index.tsx:103–105  ·  view source on GitHub ↗
(message: string, position: number)

Source from the content-addressed store, hash-verified

101}
102
103function getMode(message: string, position: number) {
104 return isMentionMode(message, position) ? Mode.Mention : Mode.Standard;
105}
106
107function getMention(message: string, position: number) {
108 if (isMentionMode(message, position)) {

Callers 1

MessageFormFunction · 0.85

Calls 1

isMentionModeFunction · 0.85

Tested by

no test coverage detected