2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 15208
|
|
|
|
|
// Function ID: 15209
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ChannelBadge
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [19, 17, 1946, 21, 4255, 647, 15209, 11552, 4251, 1851, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 15208 (ChannelBadge)
|
2026-07-29 08:29:29 +00:00
|
|
|
import "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { View } from "get ActivityIndicator";
|
2026-07-29 08:29:29 +00:00
|
|
|
import _getSystemLocale from "_getSystemLocale";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { jsx } from "jsxProd";
|
2026-07-29 08:29:29 +00:00
|
|
|
import createCacheKey from "createCacheKey";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
let closure_6 = createCacheKey.createStyles(() => ({ channelInfoContainer: { paddingStart: 4 } }));
|
|
|
|
|
const result = require("_getSystemLocale").fileFinishedImporting("modules/guild_sidebar/native/ChannelBadge.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function ChannelBadge(arg0) {
|
|
|
|
|
let isMentionLowImportance;
|
|
|
|
|
let isNewChannel;
|
|
|
|
|
let mentionCount;
|
|
|
|
|
let muted;
|
|
|
|
|
let postsWithUnreadsCount;
|
|
|
|
|
({ mentionCount, postsWithUnreadsCount, muted } = arg0);
|
|
|
|
|
({ isMentionLowImportance, isNewChannel } = arg0);
|
|
|
|
|
const tmp = callback();
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = require(647) /* defaultAreStatesEqual */;
|
|
|
|
|
const items = [_getSystemLocale];
|
|
|
|
|
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-05 07:35:12 +00:00
|
|
|
obj[1] = jsx(importDefault(15209), { 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-07-29 08:29:29 +00:00
|
|
|
const obj1 = { style: null, children: null };
|
|
|
|
|
obj1[0] = tmp.channelInfoContainer;
|
2026-08-05 07:35:12 +00:00
|
|
|
obj1[1] = jsx(importDefault(11552), {});
|
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 };
|
|
|
|
|
obj3[2] = tmp2(1851).humanizeValue(postsWithUnreadsCount, stateFromStores);
|
2026-08-05 07:35:12 +00:00
|
|
|
obj2[1] = jsx(tmp2(4251).Text, { variant: "text-xs/semibold", color: "text-muted", children: null });
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp5 = <View style={null}>{null}</View>;
|
|
|
|
|
const tmp2Result = tmp2(1851);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|