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

Function TextCounter

frontend/src/components/commonUI/TextCounter.tsx:16–22  ·  view source on GitHub ↗
({ textLength }: TextCounterProps)

Source from the content-addressed store, hash-verified

14}
15
16function TextCounter({ textLength }: TextCounterProps) {
17 return (
18 <Text position="absolute" bottom="2" right="2" fontSize="sm" color={getTextColor(textLength)}>
19 {textLength}/{MAX_CHARACTERS}
20 </Text>
21 )
22}
23
24export default TextCounter

Callers

nothing calls this directly

Calls 1

getTextColorFunction · 0.85

Tested by

no test coverage detected