35 lines
1.9 KiB
TypeScript
35 lines
1.9 KiB
TypeScript
// Metro module 11593 (f11594).
|
|
import { useSelectedDismissibleContent, useSelectedVersionedDismissibleContent, useSelectedTimeRecurringDismissibleContent, useSelectedTimeRecurringGuildDismissibleContent } from "../../../dismissible_content/hooks/useSelectedDismissibleContent";
|
|
import { DismissibleContent } from "../../../../_bundle/Module1358";
|
|
import { GUILD_POWERUP_NOTIFICATION_COOLDOWN, BOOST_TO_UNLOCK_COACHMARK_COOLDOWN, BOOST_TO_UNLOCK_COACHMARK_MAX_TIMES_TO_RECUR } from "../constants/GuildPowerupsNotification";
|
|
import BoostToUnlockMobileCoachmarkExperiment from "../../../guild_boosting/experiments/BoostToUnlockMobileCoachmarkExperiment";
|
|
export function usePerksCoachmarkDCF(a0) {
|
|
return useSelectedDismissibleContent(a0 ? [DismissibleContent.GUILD_POWERUP_PERKS_COACHMARK] : []);
|
|
}
|
|
export function useNewPerkAvailableCoachmarkDCF(a0, a1) {
|
|
return useSelectedVersionedDismissibleContent(a0 ? a1 > 0 ? DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK : null : null, a1);
|
|
}
|
|
export function useGuildPowerupNotificationDCF(a0) {
|
|
return useSelectedTimeRecurringDismissibleContent(a0 ? DismissibleContent.GUILD_POWERUP_NOTIFICATION : null, {
|
|
cooldownDurationMs: GUILD_POWERUP_NOTIFICATION_COOLDOWN
|
|
});
|
|
}
|
|
export function useNewGamesCoachmarkDC() {
|
|
return [null, () => {}];
|
|
}
|
|
export function useGameServerPricingCoachmarkDCF() {
|
|
return [null, () => {}];
|
|
}
|
|
export function useBoostToUnlockCoachmarkDCF(a0, a1, a2) {
|
|
const showCoachmark = BoostToUnlockMobileCoachmarkExperiment.useConfig({
|
|
location: "useBoostToUnlockCoachmarkDCF"
|
|
}).showCoachmark;
|
|
return useSelectedTimeRecurringGuildDismissibleContent(a0 ? showCoachmark ? DismissibleContent.BOOST_TO_UNLOCK_COACHMARK : null : null, a1, {
|
|
cooldownDurationMs: BOOST_TO_UNLOCK_COACHMARK_COOLDOWN,
|
|
numTimesToRecur: BOOST_TO_UNLOCK_COACHMARK_MAX_TIMES_TO_RECUR
|
|
}, a2);
|
|
}
|
|
export function useExpiringPowerupCoachmarkDCF() {
|
|
return [null, () => {}];
|
|
}
|