2026-08-13 07:00:46 +00:00
|
|
|
// Module ID: 12042
|
|
|
|
|
// Function ID: 12043
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: UserProfileConfirmRemoveGameFriend
|
2026-08-13 07:00:46 +00:00
|
|
|
// Dependencies: [19, 21, 8838, 9681, 4688, 1236, 4688, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-13 07:00:46 +00:00
|
|
|
// Module 12042 (UserProfileConfirmRemoveGameFriend)
|
2026-07-29 08:29:29 +00:00
|
|
|
import noop from "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
let c4;
|
|
|
|
|
let c5;
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
2026-07-23 10:11:24 +00:00
|
|
|
let result = require("getProfileProperties").fileFinishedImporting("modules/user_profile/native/UserProfileConfirmRemoveGameFriend.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function UserProfileConfirmRemoveGameFriend(gameName) {
|
|
|
|
|
let userDisplayName;
|
|
|
|
|
let userId;
|
|
|
|
|
({ userDisplayName, userId } = gameName);
|
|
|
|
|
const applicationId = gameName.applicationId;
|
|
|
|
|
const items = [applicationId, userId];
|
|
|
|
|
const callback = React.useCallback(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = userId(outer1_2[2]);
|
2026-07-20 16:05:17 +00:00
|
|
|
const result = obj.trackUserProfileAction({ action: "REMOVE_GAME_FRIEND" });
|
|
|
|
|
obj = { userId, applicationId, location: "UserProfileConfirmRemoveGameFriend" };
|
2026-07-23 10:11:24 +00:00
|
|
|
applicationId(outer1_2[3]).removeFriend(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { title: null, content: null, actions: null };
|
|
|
|
|
const intl = userId(1236).intl;
|
|
|
|
|
obj[0] = intl.formatToPlainString(userId(1236).t.fBKKfq, { name: userDisplayName });
|
|
|
|
|
const intl2 = userId(1236).intl;
|
|
|
|
|
obj[1] = intl2.formatToPlainString(userId(1236).t.dsU5bl, { name: userDisplayName, gameName: gameName.gameName });
|
|
|
|
|
obj = { children: null };
|
|
|
|
|
obj = { variant: "destructive", text: null, onPress: null };
|
|
|
|
|
const intl3 = userId(1236).intl;
|
|
|
|
|
obj[1] = intl3.string(userId(1236).t.RLcE6x);
|
|
|
|
|
obj[2] = callback;
|
2026-08-13 07:00:46 +00:00
|
|
|
const items1 = [callback(userId(4688).AlertActionButton, obj, "confirm-remove"), ];
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj1 = { variant: "secondary", text: null };
|
|
|
|
|
const intl4 = userId(1236).intl;
|
|
|
|
|
obj1[1] = intl4.string(userId(1236).t["eN6+rI"]);
|
2026-08-13 07:00:46 +00:00
|
|
|
items1[1] = callback(userId(4688).AlertActionButton, obj1, "nevermind");
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = items1;
|
2026-08-13 07:00:46 +00:00
|
|
|
obj[2] = callback2(userId(4688).AlertActions, obj);
|
|
|
|
|
return callback(userId(4688).AlertModal, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|