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

Function getUnreadText

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

Source from the content-addressed store, hash-verified

254const MAX_UNREAD_DISPLAY = 20;
255
256export const getUnreadText = (unread: number): string =>
257 unread > MAX_UNREAD_DISPLAY ? `${MAX_UNREAD_DISPLAY}+` : unread.toString();
258
259interface ActionCopy {
260 mute: string;

Callers 9

NotificationsBellFunction · 0.90
ShellClusterFunction · 0.90
MessagesSquareFunction · 0.90
RailMoreMenuFunction · 0.90
SidebarCountBadgeFunction · 0.90
renderCategoryTabFunction · 0.90
SidebarTabletFunction · 0.90
NotificationsWidgetFunction · 0.90
InternalAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected