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

67 lines
2.6 KiB
TypeScript
Raw Normal View History

// Module ID: 16342
// Function ID: 16343
2026-07-20 16:05:17 +00:00
// Name: ChannelItemEmbeddedActivities
// Dependencies: [19, 17, 21, 4639, 576, 7279, 4635, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 16342 (ChannelItemEmbeddedActivities)
import nativeDefault from "native" /* 576 */;
import Text_Text from "Text/Text" /* 4635 */;
import GameIcon from "GameIcon" /* 7279 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const GameIconDefault = GameIcon;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
const createStyles = fn(4639);
let obj2 = { overflow: { lineHeight: 16, textAlign: "center", textAlignVertical: "center", padding: 4 }, overflowContainer: { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, borderRadius: nativeDefault.radii.xs, display: "flex", alignItems: "center", justifyContent: "center" }, container: { display: "flex", flexDirection: "row" }, modeMuted: { opacity: 0.3 } };
let closure_6 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_sidebar/native/ChannelItemEmbeddedActivities.tsx");
2026-07-20 16:05:17 +00:00
export default function ChannelItemEmbeddedActivities(muted) {
({ embeddedApps, size } = muted);
if (size === undefined) {
2026-08-24 06:08:38 +00:00
size = GameIcon.GameIconSizes.SIZE_24;
2026-07-20 16:05:17 +00:00
}
let modeMuted = muted.muted;
const tmp3 = closure_6();
2026-07-20 16:05:17 +00:00
if (embeddedApps.length <= 0) {
return null;
} else if (1 === embeddedApps.length) {
const obj2 = { game: embeddedApps[0].application, size, style: null };
2026-07-20 16:05:17 +00:00
if (modeMuted) {
modeMuted = tmp3.modeMuted;
}
obj2.style = modeMuted;
return React4(GameIconDefault, obj2);
2026-07-20 16:05:17 +00:00
} else {
const diff = embeddedApps.length - 1;
2026-08-24 06:08:38 +00:00
const tmp13 = GameIcon.GameIconImageSize[size];
const obj3 = { style: tmp3.container, children: null };
const obj4 = { game: embeddedApps[0].application, size, style: { marginRight: 4 } };
const items = [React4(GameIconDefault, obj4), ];
2026-07-20 16:05:17 +00:00
if (2 === embeddedApps.length) {
const obj = { game: embeddedApps[1].application, size };
2026-08-24 06:08:38 +00:00
let tmp16Result = tmp16(GameIconDefault, obj);
2026-07-20 16:05:17 +00:00
} else {
const obj5 = { style: null, children: null };
2026-07-20 16:05:17 +00:00
const items1 = [tmp3.overflowContainer, ];
const obj6 = { height: tmp13, minWidth: tmp13 };
items1[1] = obj6;
obj5.style = items1;
const obj7 = { style: tmp3.overflow, variant: "text-xs/bold", children: null };
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
obj7.children = "+" + diff;
obj5.children = tmp16(Text_Text.Text, obj7);
tmp16Result = tmp16(tmp15, obj5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp16Result;
obj3.children = items;
return hasOwnProperty(View, obj3);
2026-07-20 16:05:17 +00:00
}
};