decord/source/modules/user_profile/native/UserProfileMutualGuildsActionSheet.tsx

75 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 11770
// Function ID: 11771
2026-07-20 16:05:17 +00:00
// Name: UserProfileMutualGuildsActionSheet
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 21, 4661, 712, 11771, 9450, 11772, 11773, 11777, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 11770 (UserProfileMutualGuildsActionSheet)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ View: c3, ActivityIndicator: c4 } = get_ActivityIndicator);
createCacheKey = { container: null, loadingState: null, emptyState: null };
createCacheKey = { flex: 1, gap: 20, paddingTop: require("Themes").space.PX_8 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { paddingTop: require("Themes").space.PX_8, alignItems: "center" };
createCacheKey[2] = { alignItems: "center" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj1 = { paddingTop: require("Themes").space.PX_8, alignItems: "center" };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/user_profile/native/UserProfileMutualGuildsActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileMutualGuildsActionSheet(user) {
user = user.user;
2026-07-23 10:11:24 +00:00
const onPressMutualGuild = user.onPressMutualGuild;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-08-15 05:55:55 +00:00
const mutualGuilds = onPressMutualGuild(11771)(user).mutualGuilds;
2026-07-20 16:05:17 +00:00
let length;
2026-08-15 05:55:55 +00:00
const tmp4 = onPressMutualGuild(9450);
2026-07-29 08:29:29 +00:00
if (mutualGuilds != null) {
2026-07-20 16:05:17 +00:00
length = mutualGuilds.length;
}
2026-08-15 05:55:55 +00:00
let obj = { scrollable: true, title: onPressMutualGuild(11772)(length), children: null };
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
2026-07-20 16:05:17 +00:00
if (null == mutualGuilds) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.loadingState;
obj[1] = tmp3(closure_4, {});
let tmp3Result = tmp3(tmp7, obj);
2026-07-20 16:05:17 +00:00
} else if (0 === mutualGuilds.length) {
2026-07-29 08:29:29 +00:00
const obj1 = { style: null, children: null };
obj1[0] = tmp.emptyState;
2026-08-15 05:55:55 +00:00
obj1[1] = tmp3(user(11773).NoMutualServers, {});
2026-07-29 08:29:29 +00:00
tmp3Result = tmp3(tmp7, obj1);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj2 = { data: null, keyExtractor: null, renderItem: null };
obj2[0] = mutualGuilds;
obj2[1] = function keyExtractor(guild) {
return guild.guild.id;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj2[2] = function renderItem(item) {
let end;
let start;
item = item.item;
({ start, end } = item);
return outer1_5(user(outer1_2[9]).MutualGuildRow, {
user: item,
mutualGuild: item,
onPress() {
return outer1_1(item.guild.id);
2026-07-23 10:11:24 +00:00
},
2026-07-29 08:29:29 +00:00
start,
end
});
};
2026-08-15 05:55:55 +00:00
tmp3Result = tmp3(user(9450).UserProfileStackedActionSheetList, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = tmp3Result;
obj[2] = <closure_3 style={tmp.container}>{null}</closure_3>;
return <tmp4 style={tmp.container}>{null}</tmp4>;
2026-07-20 16:05:17 +00:00
};