MCPcopy Create free account
hub / github.com/dailydotdev/apps / formatCount

Function formatCount

packages/shared/src/components/InteractionCounter.tsx:13–14  ·  view source on GitHub ↗
(count: number | null)

Source from the content-addressed store, hash-verified

11
12// `largeNumberFormat` takes a number; guard the nullable counter value here.
13const formatCount = (count: number | null): string | null =>
14 count == null ? null : largeNumberFormat(count);
15
16export default function InteractionCounter({
17 className,

Callers 1

InteractionCounterFunction · 0.85

Calls 1

largeNumberFormatFunction · 0.90

Tested by

no test coverage detected