// Module ID: 15586 // Function ID: 15587 // Name: ChannelBadge // Dependencies: [19, 17, 1996, 21, 4380, 647, 15587, 11863, 4376, 1898, 2] // Exports: default // Module 15586 (ChannelBadge) import noopAll from "noop" /* 19 */; import defaultAreStatesEqual from "defaultAreStatesEqual" /* 647 */; import NewBadgeDefault from "NewBadge" /* 11863 */; import MentionsBadgeDefault from "MentionsBadge" /* 15587 */; import { View } from "get ActivityIndicator" /* 17 */; import closure_4 from "_getSystemLocale" /* 1996 */; import { jsx } from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4380 */; 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 = ; } return tmp5; } if (isNewChannel) { obj1 = { style: null, children: null }; obj1[0] = tmp.channelInfoContainer; obj1[1] = jsx(NewBadgeDefault, {}); tmp5 = {null}; } 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(1898).humanizeValue(postsWithUnreadsCount, stateFromStores); obj2[1] = jsx(tmp2(4376).Text, { variant: "text-xs/semibold", color: "text-muted", children: null }); tmp5 = {null}; const tmp2Result = tmp2(1898); } } } } } };