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

Function useAdLabel

packages/shared/src/features/monetization/useAdLabel.ts:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10export const useAdLabel = (): UseAdLabel => {
11 const variant = useFeature(featureAdLabel);
12
13 return {
14 hideAdvertiser: !!variant && variant !== AdLabelVariant.Control,
15 showAdvertiseLink: variant !== AdLabelVariant.AdOnly,
16 };
17};

Callers 3

AdGrid.tsxFile · 0.90
AdList.tsxFile · 0.90
AdAttributionFunction · 0.90

Calls 1

useFeatureFunction · 0.90

Tested by

no test coverage detected