summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js')
-rw-r--r--node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js b/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js
new file mode 100644
index 0000000..52468f9
--- /dev/null
+++ b/node_modules/@jet-app/app-store/tmp/src/foundation/experimentation/today-ad-experiments.js
@@ -0,0 +1,15 @@
+import * as appStoreExperiments from "./app-store-experiments";
+import { ExperimentAreaId } from "./experiment-area-id";
+/**
+ * Check whether the condensed treatment should be applied to the Today ad.
+ * @param objectGraph The object graph.
+ * @returns A boolean indicating if the treatment should be applied.
+ */
+export function shouldTodayAdBeCondensed(objectGraph) {
+ if (!objectGraph.client.isPhone) {
+ return false;
+ }
+ const treatmentId = appStoreExperiments.currentTreatmentIdForArea(objectGraph, ExperimentAreaId.CondensedTodayAds);
+ return treatmentId === "5pdfhju01" /* TodayAdCondensedDisplayExperimentTypes.Condensed */;
+}
+//# sourceMappingURL=today-ad-experiments.js.map \ No newline at end of file