MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / getTextColor

Function getTextColor

frontend/src/components/commonUI/TextCounter.tsx:8–14  ·  view source on GitHub ↗
(currentLength: number)

Source from the content-addressed store, hash-verified

6}
7
8const getTextColor = (currentLength: number) => {
9 const warningLimit = MAX_CHARACTERS - WARNING_THRESHOLD
10 if (currentLength > warningLimit) {
11 return 'red.500'
12 }
13 return 'gray.500'
14}
15
16function TextCounter({ textLength }: TextCounterProps) {
17 return (

Callers 1

TextCounterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected