decord/source/modules/game_profile/hooks/useOpenGameProfileModal.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

47 lines
1.3 KiB
TypeScript

// Module ID: 8810
// Function ID: 8811
// Name: useOpenGameProfileModal
// Dependencies: [8811, 8815, 2]
// Exports: default
// Module 8810 (useOpenGameProfileModal)
import GameProfileActionCreatorsDefault from "GameProfileActionCreators" /* 8815 */;
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;
};