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

Function getUnreadText

packages/shared/src/components/notifications/utils.ts:232–233  ·  view source on GitHub ↗
(unread: number)

Source from the content-addressed store, hash-verified

230const MAX_UNREAD_DISPLAY = 20;
231
232export const getUnreadText = (unread: number): string =>
233 unread > MAX_UNREAD_DISPLAY ? `${MAX_UNREAD_DISPLAY}+` : unread.toString();
234
235interface ActionCopy {
236 mute: string;

Callers 5

Bell.stories.tsxFile · 0.90
NotificationsBellFunction · 0.90
SidebarTabletFunction · 0.90
NotificationsFunction · 0.90
InternalAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected