()
| 208 | |
| 209 | /** Offered to a signed-in reader whose rail has the tips off (the default). */ |
| 210 | const ShowTipsInFeed = (): ReactElement | null => { |
| 211 | const { user } = useAuthContext(); |
| 212 | const { flags } = useSettingsContext(); |
| 213 | const isHidden = isFeedWidgetTipHidden( |
| 214 | readStoredFeedRail(flags?.feedWidgets), |
| 215 | ); |
| 216 | |
| 217 | // The rail's hook only mounts for the readers who can use it. |
| 218 | return user && isHidden ? <RestoreTips /> : null; |
| 219 | }; |
| 220 | |
| 221 | function TipsPage(): ReactElement { |
| 222 | const isLaptopLayout = useLaptopLayout(); |
nothing calls this directly
no test coverage detected