Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
23 lines
938 B
TypeScript
23 lines
938 B
TypeScript
// Module ID: 12673
|
|
// Function ID: 12674
|
|
// Name: GuildPowerupAnalytics
|
|
// Dependencies: [19, 1074, 1240, 2]
|
|
// Exports: useLogPowerupModalOpened
|
|
|
|
// Module 12673 (GuildPowerupAnalytics)
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const AnalyticEvents = fn(1074).AnalyticEvents;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/analytics/GuildPowerupAnalytics.tsx");
|
|
|
|
export const ModalType = { DETAIL: "Boost Perk Shop Details", DEACTIVATE: "Boost Perk Shop Disable" };
|
|
export const useLogPowerupModalOpened = function useLogPowerupModalOpened(guildId, powerup, DEACTIVATE) {
|
|
const guild_id = guildId;
|
|
noop = DEACTIVATE;
|
|
const items = [DEACTIVATE, guildId, powerup.skuId];
|
|
const effect = noop.useEffect(() => {
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_MODAL, { type, sku_id: powerup.skuId, guild_id });
|
|
}, items);
|
|
};
|