decord/source/modules/guild_sidebar/native/ChannelBadge.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

67 lines
2.5 KiB
TypeScript

// Module ID: 16229
// Function ID: 16230
// Name: ChannelBadge
// Dependencies: [19, 17, 2025, 21, 4560, 563, 16230, 12296, 4556, 1880, 2]
// Exports: default
// Module 16229 (ChannelBadge)
import noopAll from "noop" /* 19 */;
import defaultAreStatesEqual from "defaultAreStatesEqual" /* 563 */;
import NewBadgeDefault from "NewBadge" /* 12296 */;
import MentionsBadgeDefault from "MentionsBadge" /* 16230 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "_getSystemLocale" /* 2025 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
require = arg1;
noopAll;
let closure_6 = createCacheKey.createStyles(() => ({ channelInfoContainer: { paddingStart: 4 } }));
const result = require("set").fileFinishedImporting("modules/guild_sidebar/native/ChannelBadge.tsx");
export default function ChannelBadge(arg0) {
({ mentionCount, postsWithUnreadsCount, muted } = arg0);
({ isMentionLowImportance, isNewChannel } = arg0);
const tmp = callback();
let obj = defaultAreStatesEqual;
const items = [closure_4];
const stateFromStores = obj.useStateFromStores(items, () => locale.locale);
if (null != mentionCount) {
if (mentionCount > 0) {
obj = { style: null, children: null };
obj[0] = tmp.channelInfoContainer;
obj = { mentionsCount: null, isMentionLowImportance: null };
obj[0] = mentionCount;
obj[1] = isMentionLowImportance;
obj[1] = jsx(MentionsBadgeDefault, { mentionsCount: null, isMentionLowImportance: null });
let tmp5 = <View mentionsCount={null} isMentionLowImportance={null} />;
}
return tmp5;
}
if (isNewChannel) {
obj1 = { style: null, children: null };
obj1[0] = tmp.channelInfoContainer;
obj1[1] = jsx(NewBadgeDefault, {});
tmp5 = <View style={null}>{null}</View>;
} else {
tmp5 = null;
if (null != muted) {
tmp5 = null;
if (!muted) {
tmp5 = null;
if (null != postsWithUnreadsCount) {
tmp5 = null;
if (postsWithUnreadsCount > 0) {
const obj2 = { style: null, children: null };
obj2[0] = tmp.channelInfoContainer;
const obj3 = { variant: "text-xs/semibold", color: "text-muted", children: null };
obj3[2] = tmp2(1880).humanizeValue(postsWithUnreadsCount, stateFromStores);
obj2[1] = jsx(tmp2(4556).Text, { variant: "text-xs/semibold", color: "text-muted", children: null });
tmp5 = <View style={null}>{null}</View>;
const tmp2Result = tmp2(1880);
}
}
}
}
}
};