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

Function feedWidgetTipLogEvent

packages/shared/src/features/feedWidgets/tips.ts:84–93  ·  view source on GitHub ↗
(
  eventName: LogEvent,
  origin: Origin,
  tip?: Pick<FeedWidgetTip, 'id'>,
)

Source from the content-addressed store, hash-verified

82 * type: some tip ids, such as `briefing`, are also widget kinds.
83 */
84export const feedWidgetTipLogEvent = (
85 eventName: LogEvent,
86 origin: Origin,
87 tip?: Pick<FeedWidgetTip, 'id'>,
88) => ({
89 event_name: eventName,
90 target_type: TargetType.FeedWidgetTip,
91 target_id: tip?.id,
92 extra: JSON.stringify({ origin }),
93});
94
95export const feedWidgetTips: FeedWidgetTip[] = [
96 {

Callers 4

FeedWidgetRailFunction · 0.90
tipLogEventFunction · 0.90
TipItemFunction · 0.90
RestoreTipsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected