({
canAddExtension = true,
isEdge = false,
}: { canAddExtension?: boolean; isEdge?: boolean } = {})
| 255 | |
| 256 | /** The tips this surface shows. */ |
| 257 | export const getFeedWidgetTips = ({ |
| 258 | canAddExtension = true, |
| 259 | isEdge = false, |
| 260 | }: { canAddExtension?: boolean; isEdge?: boolean } = {}): FeedWidgetTip[] => |
| 261 | feedWidgetTips |
| 262 | .filter((tip) => !tip.isBrowserOnly || (!isExtension && canAddExtension)) |
| 263 | .map((tip) => |
| 264 | tip.isBrowserOnly && isEdge ? { ...tip, cta: 'Add to Edge' } : tip, |
| 265 | ); |
| 266 | |
| 267 | /** |
| 268 | * The tips this reader can act on. The native apps and the browser are only |
no outgoing calls
no test coverage detected