81 lines
2.8 KiB
TypeScript
81 lines
2.8 KiB
TypeScript
// Module ID: 11719
|
|
// Function ID: 11720
|
|
// Name: usePerksCoachmarkDCF
|
|
// Dependencies: [7404, 1377, 11713, 11720, 2]
|
|
// Exports: useBoostToUnlockCoachmarkDCF, useExpiringPowerupCoachmarkDCF, useGameServerPricingCoachmarkDCF, useGuildPowerupNotificationDCF, useNewGamesCoachmarkDC, useNewPerkAvailableCoachmarkDCF, usePerksCoachmarkDCF
|
|
|
|
// Module 11719 (usePerksCoachmarkDCF)
|
|
import set from "set" /* 2 */;
|
|
import DismissibleContent from "DismissibleContent" /* 1377 */;
|
|
import useSelectedDismissibleContent from "useSelectedDismissibleContent" /* 7404 */;
|
|
import getUnitIdDefault from "getUnitId" /* 11720 */;
|
|
|
|
const result = set.fileFinishedImporting("modules/premium/powerups/hooks/GuildPowerupsNotificationsDCF.native.tsx");
|
|
|
|
export const usePerksCoachmarkDCF = function usePerksCoachmarkDCF(arg0) {
|
|
if (arg0) {
|
|
const items = [DismissibleContent.DismissibleContent.GUILD_POWERUP_PERKS_COACHMARK];
|
|
let items1 = items;
|
|
} else {
|
|
items1 = [];
|
|
}
|
|
return useSelectedDismissibleContent.useSelectedDismissibleContent(items1);
|
|
};
|
|
export const useNewPerkAvailableCoachmarkDCF = function useNewPerkAvailableCoachmarkDCF(arg0, latestVersion) {
|
|
let prop = null;
|
|
if (arg0) {
|
|
prop = null;
|
|
if (latestVersion > 0) {
|
|
prop = DismissibleContent.DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK;
|
|
}
|
|
}
|
|
return useSelectedDismissibleContent.useSelectedVersionedDismissibleContent(prop, latestVersion);
|
|
};
|
|
export const useGuildPowerupNotificationDCF = function useGuildPowerupNotificationDCF(arg0) {
|
|
let obj = useSelectedDismissibleContent;
|
|
let prop = null;
|
|
if (arg0) {
|
|
prop = tmp(1377).DismissibleContent.GUILD_POWERUP_NOTIFICATION;
|
|
}
|
|
obj = { cooldownDurationMs: tmp(11713).GUILD_POWERUP_NOTIFICATION_COOLDOWN };
|
|
return obj.useSelectedTimeRecurringDismissibleContent(prop, obj);
|
|
};
|
|
export function useNewGamesCoachmarkDC(arg0) {
|
|
const items = [
|
|
null,
|
|
() => {
|
|
|
|
}
|
|
];
|
|
return items;
|
|
}
|
|
export function useGameServerPricingCoachmarkDCF(arg0) {
|
|
const items = [
|
|
null,
|
|
() => {
|
|
|
|
}
|
|
];
|
|
return items;
|
|
}
|
|
export const useBoostToUnlockCoachmarkDCF = function useBoostToUnlockCoachmarkDCF(arg0, id, GUILD_HEADER_TOOLTIPS) {
|
|
let obj = getUnitIdDefault;
|
|
let prop = null;
|
|
if (arg0) {
|
|
prop = null;
|
|
if (obj.useConfig({ location: "useBoostToUnlockCoachmarkDCF" }).showCoachmark) {
|
|
prop = tmp2(1377).DismissibleContent.BOOST_TO_UNLOCK_COACHMARK;
|
|
}
|
|
}
|
|
obj = { cooldownDurationMs: tmp2(11713).BOOST_TO_UNLOCK_COACHMARK_COOLDOWN, numTimesToRecur: tmp2(11713).BOOST_TO_UNLOCK_COACHMARK_MAX_TIMES_TO_RECUR };
|
|
return useSelectedDismissibleContent.useSelectedTimeRecurringGuildDismissibleContent(prop, id, obj, GUILD_HEADER_TOOLTIPS);
|
|
};
|
|
export function useExpiringPowerupCoachmarkDCF(arg0, c0) {
|
|
const items = [
|
|
null,
|
|
() => {
|
|
|
|
}
|
|
];
|
|
return items;
|
|
}
|