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

78 lines
3.1 KiB
TypeScript
Raw Normal View History

// Module ID: 13215
// Function ID: 13216
2026-07-20 16:05:17 +00:00
// Name: UserProfileGameFriendsCard
// Dependencies: [19, 21, 4636, 7271, 1114, 12757, 7310, 4632, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13215 (UserProfileGameFriendsCard)
import useGetOrFetchApplicationsDefault from "useGetOrFetchApplications" /* 7271 */;
import ApplicationIconAndNameDefault from "ApplicationIconAndName" /* 12757 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const UserProfileCardDefault = tmp2(7310);
const require = fn;
let jsx = fn(21).jsx;
const createStyles = fn(4636);
let closure_4 = createStyles.createStyles({ card: { flexDirection: "column" } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileGameFriendsCard.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileGameFriendsCard(arg0) {
2026-08-24 06:08:38 +00:00
importDefault = undefined;
dependencyMap = undefined;
jsx = undefined;
2026-07-20 16:05:17 +00:00
({ applicationIds, style } = arg0);
const tmp = closure_4();
const found = useGetOrFetchApplicationsDefault(applicationIds).filter((item) => null != item);
2026-07-20 16:05:17 +00:00
if (0 === found.length) {
return null;
} else {
importDefault = "text-md/normal";
if (1 === found.length) {
const intl2 = found(1114).intl;
const obj2 = {
applicationName() {
return jsx(ApplicationIconAndNameDefault, { application: found[0], textVariant, iconSize: 16 }, found[0].id);
}
2026-07-20 16:05:17 +00:00
};
let formatResult = intl2.format(found(1114).t.wQ6urw, obj2);
2026-07-29 08:29:29 +00:00
let tmp6 = found;
2026-07-20 16:05:17 +00:00
} else if (2 === found.length) {
const intl = found(1114).intl;
const obj = {
applicationName() {
return jsx(ApplicationIconAndNameDefault, { application: found[0], textVariant, iconSize: 16 }, found[0].id);
},
applicationName2() {
return jsx(ApplicationIconAndNameDefault, { application: found[1], textVariant, iconSize: 16 }, found[1].id);
}
2026-07-29 08:29:29 +00:00
};
formatResult = intl.format(found(1114).t.C98CSN, obj);
2026-07-29 08:29:29 +00:00
tmp6 = found;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
dependencyMap = found[found.length - 1];
2026-07-20 16:05:17 +00:00
jsx = found.slice(0, -1);
const intl4 = found(1114).intl;
const obj3 = {
applications() {
return closure_3.map((application) => closure_3(textVariant(closure_2[5]), { application, useComma: true, textVariant, iconSize: 16 }, application.id));
},
applicationNameLast() {
return jsx(ApplicationIconAndNameDefault, { application, textVariant, iconSize: 16 });
}
2026-07-20 16:05:17 +00:00
};
formatResult = intl4.format(found(1114).t.UxpwAh, obj3);
2026-07-29 08:29:29 +00:00
tmp6 = found;
2026-07-20 16:05:17 +00:00
}
const obj4 = { style: null, title: null, children: null };
2026-07-20 16:05:17 +00:00
const items = [tmp.card, style];
obj4.style = items;
const intl3 = tmp6(1114).intl;
obj4.title = intl3.string(tmp6(1114).t["Uv/eTx"]);
const obj5 = { variant: "text-md/normal", color: "text-default", children: formatResult };
obj4.children = jsx(tmp6(4632).Text, { variant: "text-md/normal", color: "text-default", children: formatResult });
2026-08-31 15:47:37 +00:00
return jsx(UserProfileCardDefault, { style: null, title: null, children: null });
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const arr = useGetOrFetchApplicationsDefault(applicationIds);
2026-07-20 16:05:17 +00:00
};