decord/source/modules/guild_sidebar/native/ChannelBadge.tsx

68 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15554
// Function ID: 15555
2026-07-20 16:05:17 +00:00
// Name: ChannelBadge
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 1995, 21, 4668, 647, 15555, 11512, 4739, 1898, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15554 (ChannelBadge)
import noopAll from "noop" /* 19 */;
import defaultAreStatesEqual from "defaultAreStatesEqual" /* 647 */;
import NewBadgeDefault from "NewBadge" /* 11512 */;
import MentionsBadgeDefault from "MentionsBadge" /* 15555 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "_getSystemLocale" /* 1995 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles(() => ({ channelInfoContainer: { paddingStart: 4 } }));
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_sidebar/native/ChannelBadge.tsx");
2026-07-20 16:05:17 +00:00
export default function ChannelBadge(arg0) {
({ mentionCount, postsWithUnreadsCount, muted } = arg0);
({ isMentionLowImportance, isNewChannel } = arg0);
const tmp = callback();
2026-08-24 06:08:38 +00:00
let obj = defaultAreStatesEqual;
const items = [closure_4];
2026-07-29 08:29:29 +00:00
const stateFromStores = obj.useStateFromStores(items, () => locale.locale);
2026-07-20 16:05:17 +00:00
if (null != mentionCount) {
if (mentionCount > 0) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.channelInfoContainer;
obj = { mentionsCount: null, isMentionLowImportance: null };
obj[0] = mentionCount;
obj[1] = isMentionLowImportance;
2026-08-24 06:08:38 +00:00
obj[1] = jsx(MentionsBadgeDefault, { mentionsCount: null, isMentionLowImportance: null });
2026-07-29 08:29:29 +00:00
let tmp5 = <View mentionsCount={null} isMentionLowImportance={null} />;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
}
if (isNewChannel) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.channelInfoContainer;
2026-08-24 06:08:38 +00:00
obj1[1] = jsx(NewBadgeDefault, {});
2026-07-29 08:29:29 +00:00
tmp5 = <View style={null}>{null}</View>;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp5 = null;
2026-07-20 16:05:17 +00:00
if (null != muted) {
2026-07-29 08:29:29 +00:00
tmp5 = null;
2026-07-20 16:05:17 +00:00
if (!muted) {
2026-07-29 08:29:29 +00:00
tmp5 = null;
2026-07-20 16:05:17 +00:00
if (null != postsWithUnreadsCount) {
2026-07-29 08:29:29 +00:00
tmp5 = null;
2026-07-20 16:05:17 +00:00
if (postsWithUnreadsCount > 0) {
2026-07-29 08:29:29 +00:00
const obj2 = { style: null, children: null };
obj2[0] = tmp.channelInfoContainer;
const obj3 = { variant: "text-xs/semibold", color: "text-muted", children: null };
2026-08-11 06:20:06 +00:00
obj3[2] = tmp2(1898).humanizeValue(postsWithUnreadsCount, stateFromStores);
2026-08-24 06:08:38 +00:00
obj2[1] = jsx(tmp2(4739).Text, { variant: "text-xs/semibold", color: "text-muted", children: null });
2026-07-29 08:29:29 +00:00
tmp5 = <View style={null}>{null}</View>;
2026-08-11 06:20:06 +00:00
const tmp2Result = tmp2(1898);
2026-07-20 16:05:17 +00:00
}
}
}
}
}
};