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

Function getFeedWidgetTips

packages/shared/src/features/feedWidgets/tips.ts:257–265  ·  view source on GitHub ↗
({
  canAddExtension = true,
  isEdge = false,
}: { canAddExtension?: boolean; isEdge?: boolean } = {})

Source from the content-addressed store, hash-verified

255
256/** The tips this surface shows. */
257export 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

Callers 3

tips.spec.tsFile · 0.90
TipsPage.spec.tsxFile · 0.90
useFeedWidgetTipsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected