decord/source/modules/game_profile/hooks/useOpenGameProfileModal.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

47 lines
1.3 KiB
TypeScript

// Module ID: 8745
// Function ID: 8746
// Name: useOpenGameProfileModal
// Dependencies: [8746, 8750, 2]
// Exports: default
// Module 8745 (useOpenGameProfileModal)
import GameProfileActionCreatorsDefault from "GameProfileActionCreators" /* 8750 */;
import size from "module_2" /* 2 */;
const require = globalThis.__r;
const result = size.fileFinishedImporting("modules/game_profile/hooks/useOpenGameProfileModal.tsx");
export default function useOpenGameProfileModal(arg0) {
importDefault = arg0;
let obj = arg1;
if (arg1 === undefined) {
obj = {};
}
const onOpened = obj.onOpened;
const tmp = require("useShouldOpenGameProfileModal")(arg0);
const gameProfileModalChecks = tmp;
const gameId = tmp.gameId;
let fn;
if (tmp.shouldOpenGameProfile) {
if (null != gameId) {
fn = (stopPropagation) => {
if (stopPropagation != null) {
stopPropagation.stopPropagation();
}
if (stopPropagation != null) {
stopPropagation.preventDefault();
}
const obj2 = {};
const merged = Object.assign(closure_0);
obj2.gameId = gameId;
obj2.gameProfileModalChecks = gameProfileModalChecks;
GameProfileActionCreatorsDefault.openGameProfileModal(obj2);
if (onOpened != null) {
onOpened();
}
};
}
}
return fn;
};