42 lines
1.7 KiB
TypeScript
42 lines
1.7 KiB
TypeScript
// Metro module 8480 (f8481).
|
|
import Module38 from "../../_bundle/Module38";
|
|
import ActionSheetActionCreators from "../action_sheet/native/ActionSheetActionCreators";
|
|
import Dispatcher from "../../Dispatcher";
|
|
const r13 = {
|
|
openGameProfileModal: function openGameProfileModal({ gameId, gameProfileModalChecks, source, sourceUserId, stackingBehavior }) {
|
|
Module38(gameProfileModalChecks.shouldOpenGameProfile, "Passed a false value for [gameProfileModalChecks]. Are you using the useShouldOpenGameProfile hook correctly?");
|
|
Module38(gameProfileModalChecks.gameId === gameId, "Passed an unexpected [gameId]. Are you passing a different one than you passed to useShouldOpenGameProfileModal?");
|
|
ActionSheetActionCreators.openLazy(import("./native/components/GameProfileScreen"), `game-profile-${gameId}`, {
|
|
gameId,
|
|
source,
|
|
sourceUserId
|
|
}, stackingBehavior);
|
|
},
|
|
returnToGameProfile: function returnToGameProfile({ gameId, source, initialScrollOffset }) {
|
|
Dispatcher.dispatch({
|
|
type: "GAME_PROFILE_CLEAR_PENDING_RETURN",
|
|
gameId
|
|
});
|
|
ActionSheetActionCreators.openLazy(import("./native/components/GameProfileScreen"), `game-profile-${gameId}`, {
|
|
gameId,
|
|
source,
|
|
initialScrollOffset
|
|
});
|
|
},
|
|
setGameProfilePendingReturn: function setGameProfilePendingReturn(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "GAME_PROFILE_SET_PENDING_RETURN",
|
|
gameId: a0.gameId,
|
|
channelId: a0.channelId,
|
|
initialScrollOffset: a0.initialScrollOffset
|
|
});
|
|
},
|
|
clearGameProfilePendingReturn: function clearGameProfilePendingReturn(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "GAME_PROFILE_CLEAR_PENDING_RETURN",
|
|
gameId: a0
|
|
});
|
|
}
|
|
};
|
|
export default r13;
|