decord/source/modules/game_profile/GameProfileActionCreators.native.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

38 lines
1.9 KiB
TypeScript

// Module ID: 8827
// Function ID: 8828
// Name: GameProfileActionCreators
// Dependencies: [38, 4607, 8828, 1897, 573, 2]
// Module 8827 (GameProfileActionCreators)
import _modDef38 from "module_38" /* 38 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4607 */;
import size from "module_2" /* 2 */;
const result = size.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?");
const obj = ActionSheetActionCreatorsDefault;
obj.openLazy(asyncRequireImpl(8828, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, sourceUserId }, stackingBehavior);
},
returnToGameProfile(gameId) {
gameId = gameId.gameId;
({ source, initialScrollOffset } = gameId);
DispatcherDefault.dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId });
const obj2 = ActionSheetActionCreatorsDefault;
obj2.openLazy(asyncRequireImpl(8828, 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) {
DispatcherDefault.dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId: id });
}
};