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

63 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 15487
// Function ID: 15488
2026-07-20 16:05:17 +00:00
// Name: VOICE_USER_SUMMARY_HEIGHT
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 1297, 4380, 8549, 8548, 4927, 4931, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 15487 (VOICE_USER_SUMMARY_HEIGHT)
import useIsUsingClientThemeDefault from "useIsUsingClientTheme" /* 8549 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import importAllResult from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
2026-07-23 10:11:24 +00:00
let closure_6 = Object.freeze({ direction: require("Button").CutoutDirection.RIGHT, inset: -2 });
2026-07-29 08:29:29 +00:00
let closure_7 = createCacheKey.createStyles({ container: { flexDirection: "row", alignItems: "center", paddingHorizontal: 16, height: 40 }, containerNoPadding: { flexDirection: "row", alignItems: "center", height: 40 }, iconContainer: { height: 40 }, redesignChannelIcon: { marginRight: 4 }, overflow: { height: 20, paddingHorizontal: 4, paddingVertical: 0, display: "flex", flexDirection: "row", alignItems: "center" }, transparentBorder: { borderColor: "transparent" } });
2026-07-23 10:11:24 +00:00
let obj = { direction: require("Button").CutoutDirection.RIGHT, inset: -2 };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((guildId) => {
2026-07-23 10:11:24 +00:00
guildId = guildId.guildId;
2026-07-20 16:05:17 +00:00
({ users, max, renderIcon, noPadding, stageIcon } = guildId);
2026-07-29 08:29:29 +00:00
const tmp = callback();
2026-07-20 16:05:17 +00:00
let transparentBorder = null;
2026-08-24 06:08:38 +00:00
if (useIsUsingClientThemeDefault()) {
2026-07-20 16:05:17 +00:00
transparentBorder = tmp.transparentBorder;
}
2026-08-25 06:04:03 +00:00
let obj = guildId(8548);
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [noPadding ? tmp.containerNoPadding : tmp.container, obj.useClientThemesOverride()];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
if (renderIcon) {
if (stageIcon) {
2026-08-25 06:04:03 +00:00
let VoiceNormalIcon = tmp4(4927).StageIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { size: "sm", color: "channel-icon", style: null };
obj[2] = tmp.redesignChannelIcon;
const items1 = [tmp7(VoiceNormalIcon, obj), ];
2026-08-24 06:08:38 +00:00
obj1 = { offsetAmount: -6, style: null, overflowStyle: null, overflowComponent: null, items: null, max: null, renderItem: null };
2026-07-29 08:29:29 +00:00
obj1[1] = tmp.iconContainer;
2026-07-20 16:05:17 +00:00
const items2 = [tmp.overflow, transparentBorder];
2026-07-29 08:29:29 +00:00
obj1[2] = items2;
obj1[3] = tmp4(1297).OverflowTextSmall;
obj1[4] = users;
obj1[5] = max;
obj1[6] = function renderItem(user) {
2026-08-24 06:08:38 +00:00
const obj = { user, guildId, size: guildId(closure_1_2[3]).AvatarSizes.XSMALL_20, cutout: null };
2026-07-20 16:05:17 +00:00
let tmp2;
if (!arg1) {
2026-08-24 06:08:38 +00:00
tmp2 = closure_1_6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = tmp2;
2026-08-24 06:08:38 +00:00
return closure_1_4(guildId(closure_1_2[3]).CutoutableAvatarImage, obj);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
items1[1] = tmp7(tmp4(1297).SummarizedIconRow, obj1);
obj[1] = items1;
return tmp5(tmp6, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-25 06:04:03 +00:00
VoiceNormalIcon = tmp4(4931).VoiceNormalIcon;
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_sidebar/native/VoiceUserSummary.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;
export const VOICE_USER_SUMMARY_HEIGHT = 40;