()
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected