(isDefaultCustom: boolean)
| 213 | // A caller with its own For you sheet owns that tab's menu, and shows the |
| 214 | // feed's settings itself while a custom default feed is the page. |
| 215 | const forYouMenu = (isDefaultCustom: boolean): RowItem['menu'] => { |
| 216 | if (forYou) { |
| 217 | return isForYouMenu |
| 218 | ? { ariaLabel: forYou.ariaLabel, onOpen: forYou.onMenu } |
| 219 | : undefined; |
| 220 | } |
| 221 | return feedMenu( |
| 222 | 'For you', |
| 223 | isDefaultCustom |
| 224 | ? `${webappUrl}feeds/${defaultFeedId}/edit` |
| 225 | : `${webappUrl}feeds/${user?.id}/edit?dview=${FeedSettingsMenu.Tags}`, |
| 226 | ); |
| 227 | }; |
| 228 | |
| 229 | if (user) { |
| 230 | const isDefaultCustom = isCustomDefaultFeed && path === '/'; |
no test coverage detected