// Module ID: 15161 // Function ID: 115262 // Name: ChannelBadge // Dependencies: [31, 27, 1922, 33, 4165, 624, 15162, 11425, 4161, 1827, 2] // Exports: default // Module 15161 (ChannelBadge) import "result"; import { View } from "get ActivityIndicator"; import _isNativeReflectConstruct from "_isNativeReflectConstruct"; import { jsx } from "jsxProd"; import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose"; const require = arg1; let closure_6 = _createForOfIteratorHelperLoose.createStyles(() => ({ channelInfoContainer: { paddingStart: 4 } })); const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/guild_sidebar/native/ChannelBadge.tsx"); 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(); let obj = require(624) /* defaultAreStatesEqual */; const items = [_isNativeReflectConstruct]; const stateFromStores = obj.useStateFromStores(items, () => outer1_4.locale); if (null != mentionCount) { if (mentionCount > 0) { obj = { style: tmp.channelInfoContainer }; obj = { mentionsCount: mentionCount, isMentionLowImportance }; obj.children = jsx(importDefault(15162), { mentionsCount: mentionCount, isMentionLowImportance }); let tmp3 = ; } return tmp3; } if (isNewChannel) { const obj1 = { style: tmp.channelInfoContainer, children: jsx(importDefault(11425), {}) }; tmp3 = {jsx(importDefault(11425), {})}; } else { tmp3 = null; if (null != muted) { tmp3 = null; if (!muted) { tmp3 = null; if (null != postsWithUnreadsCount) { tmp3 = null; if (postsWithUnreadsCount > 0) { const obj2 = { style: tmp.channelInfoContainer }; let obj3 = { variant: "text-xs/semibold", color: "text-muted" }; obj3 = require(1827) /* shortenAndLocalizeNumber */; obj3.children = obj3.humanizeValue(postsWithUnreadsCount, stateFromStores); obj2.children = jsx(require(4161) /* Text */.Text, obj3); tmp3 = ; } } } } } };