decord/source/modules/game_profile/GameProfileActionCreators.native.tsx

45 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8412
2026-07-27 11:26:19 +00:00
// Function ID: 67169
2026-07-20 16:05:17 +00:00
// Name: clearGameProfilePendingReturn
2026-07-25 08:10:48 +00:00
// Dependencies: [44, 4099, 8413, 1935, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 8412 (clearGameProfilePendingReturn)
2026-07-23 10:11:24 +00:00
function clearGameProfilePendingReturn(id) {
let obj = importDefault(686);
obj = { type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId: id };
2026-07-20 16:05:17 +00:00
obj.dispatch(obj);
}
2026-07-23 10:11:24 +00:00
const result = require("GetButton").fileFinishedImporting("modules/game_profile/GameProfileActionCreators.native.tsx");
2026-07-20 16:05:17 +00:00
export default {
openGameProfileModal(arg0) {
let gameId;
let gameProfileModalChecks;
let source;
let sourceUserId;
({ gameId, gameProfileModalChecks } = arg0);
({ source, sourceUserId } = arg0);
2026-07-23 10:11:24 +00:00
importDefault(44)(gameProfileModalChecks.shouldOpenGameProfile, "Passed a false value for [gameProfileModalChecks]. Are you using the useShouldOpenGameProfile hook correctly?");
importDefault(44)(gameProfileModalChecks.gameId === gameId, "Passed an unexpected [gameId]. Are you passing a different one than you passed to useShouldOpenGameProfileModal?");
2026-07-25 08:10:48 +00:00
const obj = importDefault(4099);
obj.openLazy(require(1935) /* maybeLoadBundle */(8413, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, sourceUserId });
2026-07-20 16:05:17 +00:00
},
returnToGameProfile(gameId) {
let initialScrollOffset;
let source;
gameId = gameId.gameId;
({ source, initialScrollOffset } = gameId);
clearGameProfilePendingReturn(gameId);
2026-07-25 08:10:48 +00:00
const obj = importDefault(4099);
obj.openLazy(require(1935) /* maybeLoadBundle */(8413, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, initialScrollOffset });
2026-07-20 16:05:17 +00:00
},
setGameProfilePendingReturn(arg0) {
let channelId;
let gameId;
let initialScrollOffset;
({ gameId, channelId, initialScrollOffset } = arg0);
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch({ type: "GAME_PROFILE_SET_PENDING_RETURN", gameId, channelId, initialScrollOffset });
2026-07-20 16:05:17 +00:00
},
clearGameProfilePendingReturn
};