Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
44 lines
2 KiB
TypeScript
44 lines
2 KiB
TypeScript
// Module ID: 12766
|
|
// Function ID: 12767
|
|
// Name: UserProfileConfirmRemoveGameFriend
|
|
// Dependencies: [19, 21, 8320, 11016, 4988, 1115, 4988, 2]
|
|
// Exports: default
|
|
|
|
// Module 12766 (UserProfileConfirmRemoveGameFriend)
|
|
import UserProfileAnalyticsUtils from "UserProfileAnalyticsUtils" /* 8320 */;
|
|
import PeopleUtilsDefault from "PeopleUtils" /* 11016 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/user_profile/native/UserProfileConfirmRemoveGameFriend.tsx");
|
|
|
|
export default function UserProfileConfirmRemoveGameFriend(gameName) {
|
|
({ userDisplayName, userId } = gameName);
|
|
const applicationId = gameName.applicationId;
|
|
const items = [applicationId, userId];
|
|
const callback = noop.useCallback(() => {
|
|
const result = UserProfileAnalyticsUtils.trackUserProfileAction({ action: "REMOVE_GAME_FRIEND" });
|
|
PeopleUtilsDefault.removeFriend({ userId, applicationId, location: "UserProfileConfirmRemoveGameFriend" });
|
|
}, items);
|
|
let obj = { title: null, content: null, actions: null };
|
|
const intl = userId(1115).intl;
|
|
obj.title = intl.formatToPlainString(userId(1115).t.fBKKfq, { name: userDisplayName });
|
|
const intl2 = userId(1115).intl;
|
|
obj.content = intl2.formatToPlainString(userId(1115).t.dsU5bl, { name: userDisplayName, gameName: gameName.gameName });
|
|
const obj2 = { children: null };
|
|
const obj3 = { variant: "destructive", text: null, onPress: null };
|
|
const intl3 = userId(1115).intl;
|
|
obj3.text = intl3.string(userId(1115).t.RLcE6x);
|
|
obj3.onPress = callback;
|
|
const items1 = [closure_4(userId(4988).AlertActionButton, obj3, "confirm-remove"), ];
|
|
const obj4 = { variant: "secondary", text: null };
|
|
const intl4 = userId(1115).intl;
|
|
obj4.text = intl4.string(userId(1115).t["eN6+rI"]);
|
|
items1[1] = closure_4(userId(4988).AlertActionButton, obj4, "nevermind");
|
|
obj2.children = items1;
|
|
obj.actions = closure_5(userId(4988).AlertActions, obj2);
|
|
return closure_4(userId(4988).AlertModal, obj);
|
|
};
|