decord/alpha/source/modules/guild_templates/useTrackCreateGuildViewed.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

36 lines
1.5 KiB
TypeScript

// Module ID: 11485
// Function ID: 11486
// Name: useTrackCreateGuildViewed
// Dependencies: [19, 6931, 1074, 1241, 2]
// Exports: default
// Module 11485 (useTrackCreateGuildViewed)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import noop from "module_19" /* 19 */;
const GuildTemplateStates = fn(6931).GuildTemplateStates;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_templates/useTrackCreateGuildViewed.tsx");
export default function useTrackCreateGuildViewed(arg0) {
closure_0 = arg0;
noop.useRef([]);
const effect = noop.useEffect(() => {
let tmp2 = null != closure_0;
if (tmp2) {
tmp2 = tmp.state !== GuildTemplateStates.RESOLVING;
}
if (tmp2) {
const current = ref.current;
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 };
}
tmp4 = ref;
}
});
};