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

73 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11819
// Function ID: 11820
2026-07-20 16:05:17 +00:00
// Name: UserProfileMutualGuildsActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 11820, 9487, 11821, 11822, 11826, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11819 (UserProfileMutualGuildsActionSheet)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ View: c3, ActivityIndicator: c4 } = get_ActivityIndicator);
createCacheKey = { container: null, loadingState: null, emptyState: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flex: 1, gap: 20, paddingTop: ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { paddingTop: ThemesDefault.space.PX_8, alignItems: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { alignItems: "center" };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
let obj1 = { paddingTop: ThemesDefault.space.PX_8, alignItems: "center" };
const result = require("set").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-08-24 06:08:38 +00:00
const tmp = callback();
const mutualGuilds = onPressMutualGuild(11820)(user).mutualGuilds;
2026-07-20 16:05:17 +00:00
let length;
2026-08-24 06:08:38 +00:00
const tmp4 = onPressMutualGuild(9487);
2026-07-29 08:29:29 +00:00
if (mutualGuilds != null) {
2026-07-20 16:05:17 +00:00
length = mutualGuilds.length;
}
2026-08-24 06:08:38 +00:00
let obj = { scrollable: true, title: onPressMutualGuild(11821)(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-08-24 06:08:38 +00:00
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.emptyState;
2026-08-24 06:08:38 +00:00
obj1[1] = tmp3(user(11822).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) {
item = item.item;
({ start, end } = item);
2026-08-24 06:08:38 +00:00
return closure_1_5(user(closure_1_2[9]).MutualGuildRow, {
2026-07-29 08:29:29 +00:00
user: item,
mutualGuild: item,
onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_1(item.guild.id);
2026-07-23 10:11:24 +00:00
},
2026-07-29 08:29:29 +00:00
start,
end
});
};
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(user(9487).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
};