decord/beta/source/modules/guild_sidebar/showChannelBadge.tsx

31 lines
864 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 16667
// Function ID: 16668
// Name: showChannelBadge
// Dependencies: [2]
// Exports: default
2026-10-12 16:32:48 +00:00
// Module 16667 (showChannelBadge)
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/guild_sidebar/showChannelBadge.tsx");
export default function showChannelBadge(isNewChannel) {
2026-10-01 14:13:23 +00:00
let mentionsCount;
let muted;
let postsWithUnreadsCount;
({ mentionsCount, postsWithUnreadsCount, muted } = isNewChannel);
2026-10-01 14:13:23 +00:00
let tmp = null != mentionsCount;
isNewChannel = isNewChannel.isNewChannel;
if (tmp) {
tmp = mentionsCount > 0;
}
2026-10-01 14:13:23 +00:00
if (!tmp) {
tmp = isNewChannel;
}
2026-10-01 14:13:23 +00:00
if (!tmp) {
tmp = null != muted && !muted && null != postsWithUnreadsCount && postsWithUnreadsCount > 0;
const tmp2 = null != muted && !muted && null != postsWithUnreadsCount && postsWithUnreadsCount > 0;
}
2026-10-01 14:13:23 +00:00
return tmp;
};