decord/source/modules/game_profile/GameProfileActionCreators.native.tsx
2026-08-13 07:00:46 +00:00

45 lines
1.9 KiB
TypeScript

// Module ID: 9327
// Function ID: 9328
// Dependencies: [38, 4310, 9328, 2007, 709, 2]
// Module 9327
const result = require("GetButton").fileFinishedImporting("modules/game_profile/GameProfileActionCreators.native.tsx");
export default {
openGameProfileModal(arg0) {
let gameId;
let gameProfileModalChecks;
let source;
let sourceUserId;
let stackingBehavior;
({ gameId, gameProfileModalChecks } = arg0);
({ source, sourceUserId, stackingBehavior } = arg0);
importDefault(38)(gameProfileModalChecks.shouldOpenGameProfile, "Passed a false value for [gameProfileModalChecks]. Are you using the useShouldOpenGameProfile hook correctly?");
importDefault(38)(gameProfileModalChecks.gameId === gameId, "Passed an unexpected [gameId]. Are you passing a different one than you passed to useShouldOpenGameProfileModal?");
let obj = importDefault(4310);
obj = { gameId, source, sourceUserId };
obj.openLazy(require(2007) /* asyncRequireImpl */(9328, dependencyMap.paths), "game-profile-" + gameId, obj, stackingBehavior);
},
returnToGameProfile(gameId) {
let initialScrollOffset;
let source;
gameId = gameId.gameId;
({ source, initialScrollOffset } = gameId);
importDefault(709).dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId });
const obj = importDefault(709);
const obj2 = importDefault(4310);
obj2.openLazy(require(2007) /* asyncRequireImpl */(9328, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, initialScrollOffset });
},
setGameProfilePendingReturn(arg0) {
let channelId;
let gameId;
let initialScrollOffset;
({ gameId, channelId, initialScrollOffset } = arg0);
importDefault(709).dispatch({ type: "GAME_PROFILE_SET_PENDING_RETURN", gameId, channelId, initialScrollOffset });
},
clearGameProfilePendingReturn(id) {
let obj = importDefault(709);
obj = { type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId: id };
obj.dispatch(obj);
}
};