decord/source/modules/guild_templates/useTrackCreateGuildViewed.tsx

37 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 11925
// Function ID: 11926
2026-07-20 16:05:17 +00:00
// Name: useTrackCreateGuildViewed
// Dependencies: [19, 7429, 1074, 1240, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11925 (useTrackCreateGuildViewed)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1240 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const GuildTemplateStates = fn(7429).GuildTemplateStates;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_templates/useTrackCreateGuildViewed.tsx");
2026-07-20 16:05:17 +00:00
export default function useTrackCreateGuildViewed(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
noop.useRef([]);
const effect = noop.useEffect(() => {
let tmp2 = null != closure_0;
2026-07-29 08:29:29 +00:00
if (tmp2) {
tmp2 = tmp.state !== GuildTemplateStates.RESOLVING;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp2) {
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (!current.includes(tmp.code)) {
const current1 = tmp4.current;
current1.push(tmp.code);
({ code: obj2.guild_template_code, name: obj2.guild_template_name, description: obj2.guild_template_description, sourceGuildId: obj2.guild_template_guild_id } = tmp);
AnalyticsUtilsDefault.track(AnalyticEvents.CREATE_GUILD_VIEWED, { guild_template_code: null, guild_template_name: null, guild_template_description: null, guild_template_guild_id: null });
const obj3 = { guild_template_code: null, guild_template_name: null, guild_template_description: null, guild_template_guild_id: null };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp4 = ref;
2026-07-20 16:05:17 +00:00
}
});
};