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

46 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9096
// Function ID: 9097
// Dependencies: [38, 4342, 9097, 2007, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 9096
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;
2026-07-29 08:29:29 +00:00
let stackingBehavior;
2026-07-20 16:05:17 +00:00
({ gameId, gameProfileModalChecks } = arg0);
2026-07-29 08:29:29 +00:00
({ 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?");
2026-08-15 05:55:55 +00:00
let obj = importDefault(4342);
2026-07-29 08:29:29 +00:00
obj = { gameId, source, sourceUserId };
2026-08-15 05:55:55 +00:00
obj.openLazy(require(2007) /* asyncRequireImpl */(9097, dependencyMap.paths), "game-profile-" + gameId, obj, stackingBehavior);
2026-07-20 16:05:17 +00:00
},
returnToGameProfile(gameId) {
let initialScrollOffset;
let source;
gameId = gameId.gameId;
({ source, initialScrollOffset } = gameId);
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId });
const obj = importDefault(709);
2026-08-15 05:55:55 +00:00
const obj2 = importDefault(4342);
obj2.openLazy(require(2007) /* asyncRequireImpl */(9097, 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-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "GAME_PROFILE_SET_PENDING_RETURN", gameId, channelId, initialScrollOffset });
2026-07-20 16:05:17 +00:00
},
2026-07-29 08:29:29 +00:00
clearGameProfilePendingReturn(id) {
let obj = importDefault(709);
obj = { type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId: id };
obj.dispatch(obj);
}
2026-07-20 16:05:17 +00:00
};