decord/source/modules/game_profile/GameProfileActionCreators.native.tsx
2026-08-24 06:08:38 +00:00

41 lines
1.9 KiB
TypeScript

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