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

Function Icon

packages/shared/src/components/notifications/NotificationItem.tsx:120–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 };
119
120 const Icon = (): ReactElement | null => {
121 if (!notification) {
122 return null;
123 }
124
125 if (isFetching) {
126 return <Loader />;
127 }
128
129 const NotifIcon =
130 preferences[0]?.status === NotificationPreferenceStatus.Muted
131 ? BellIcon
132 : BellDisabledIcon;
133
134 return <NotifIcon />;
135 };
136
137 const label = useMemo((): string => {
138 if (!notification) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected