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

Function getUnreadText

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

Source from the content-addressed store, hash-verified

239const MAX_UNREAD_DISPLAY = 20;
240
241export const getUnreadText = (unread: number): string =>
242 unread > MAX_UNREAD_DISPLAY ? `${MAX_UNREAD_DISPLAY}+` : unread.toString();
243
244interface ActionCopy {
245 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