28 lines
737 B
TypeScript
28 lines
737 B
TypeScript
// Metro module 15569 (f15570).
|
|
import GuildStore from "../../stores/GuildStore";
|
|
export function collectGuildThemeAnalyticsMetadata(a0) {
|
|
if (a0 == null) {
|
|
return null;
|
|
}
|
|
const guild = GuildStore.getGuild(a0);
|
|
if (guild == null) {
|
|
return null;
|
|
}
|
|
const guildTheme = guild.guildTheme;
|
|
if (guildTheme != null && guildTheme.enabled) {
|
|
const r12 = {
|
|
guild_theme_enabled: true,
|
|
guild_theme_is_custom: guildTheme.themeSettings?.customUserThemeSettings != null
|
|
};
|
|
const presetId = guildTheme.themeSettings?.presetId;
|
|
if (presetId != null) {
|
|
r12.guild_theme_preset_id = presetId;
|
|
}
|
|
return r12;
|
|
}
|
|
return {
|
|
guild_theme_enabled: false,
|
|
guild_theme_is_custom: false
|
|
};
|
|
}
|