decord/source/modules/user_profile/native/UserProfileMutualGuildsActionSheet.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

72 lines
2.7 KiB
TypeScript

// Module ID: 12605
// Function ID: 12606
// Name: UserProfileMutualGuildsActionSheet
// Dependencies: [19, 17, 21, 4560, 576, 12606, 11156, 12607, 12608, 12612, 2]
// Exports: default
// Module 12605 (UserProfileMutualGuildsActionSheet)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
noopAll;
({ View: c3, ActivityIndicator: c4 } = get_ActivityIndicator);
createCacheKey = { container: null, loadingState: null, emptyState: null };
createCacheKey = { flex: 1, gap: 20, paddingTop: ThemesDefault.space.PX_8 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { paddingTop: ThemesDefault.space.PX_8, alignItems: "center" };
createCacheKey[2] = { alignItems: "center" };
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");
export default function UserProfileMutualGuildsActionSheet(user) {
user = user.user;
const onPressMutualGuild = user.onPressMutualGuild;
const tmp = callback();
const mutualGuilds = onPressMutualGuild(12606)(user).mutualGuilds;
let length;
const tmp4 = onPressMutualGuild(11156);
if (mutualGuilds != null) {
length = mutualGuilds.length;
}
let obj = { scrollable: true, title: onPressMutualGuild(12607)(length), children: null };
obj = { style: tmp.container, children: null };
if (null == mutualGuilds) {
obj = { style: null, children: null };
obj[0] = tmp.loadingState;
obj[1] = tmp3(closure_4, {});
let tmp3Result = tmp3(tmp7, obj);
} else if (0 === mutualGuilds.length) {
obj1 = { style: null, children: null };
obj1[0] = tmp.emptyState;
obj1[1] = tmp3(user(12608).NoMutualServers, {});
tmp3Result = tmp3(tmp7, obj1);
} else {
const obj2 = { data: null, keyExtractor: null, renderItem: null };
obj2[0] = mutualGuilds;
obj2[1] = function keyExtractor(guild) {
return guild.guild.id;
};
obj2[2] = function renderItem(item) {
item = item.item;
({ start, end } = item);
return closure_1_5(user(closure_1_2[9]).MutualGuildRow, {
user: item,
mutualGuild: item,
onPress() {
return closure_1_1(item.guild.id);
},
start,
end
});
};
tmp3Result = tmp3(user(11156).UserProfileStackedActionSheetList, obj2);
}
obj[1] = tmp3Result;
obj[2] = <closure_3 style={tmp.container}>{null}</closure_3>;
return <tmp4 style={tmp.container}>{null}</tmp4>;
};