81 lines
2.8 KiB
TypeScript
81 lines
2.8 KiB
TypeScript
// Module ID: 12061
|
|
// Function ID: 12062
|
|
// Name: usePerksCoachmarkDCF
|
|
// Dependencies: [6131, 1377, 12055, 12062, 2]
|
|
// Exports: useBoostToUnlockCoachmarkDCF, useExpiringPowerupCoachmarkDCF, useGameServerPricingCoachmarkDCF, useGuildPowerupNotificationDCF, useNewGamesCoachmarkDC, useNewPerkAvailableCoachmarkDCF, usePerksCoachmarkDCF
|
|
|
|
// Module 12061 (usePerksCoachmarkDCF)
|
|
import set from "set" /* 2 */;
|
|
import DismissibleContent from "DismissibleContent" /* 1377 */;
|
|
import useSelectedDismissibleContent from "useSelectedDismissibleContent" /* 6131 */;
|
|
import getUnitIdDefault from "getUnitId" /* 12062 */;
|
|
|
|
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(12055).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(12055).BOOST_TO_UNLOCK_COACHMARK_COOLDOWN, numTimesToRecur: tmp2(12055).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;
|
|
}
|