decord/source/modules/game_profile/hooks/useOpenGameProfileModal.tsx

46 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8631
// Function ID: 68420
2026-07-20 16:05:17 +00:00
// Name: useOpenGameProfileModal
2026-07-24 07:16:23 +00:00
// Dependencies: [8632, 8636, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 8631 (useOpenGameProfileModal)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/game_profile/hooks/useOpenGameProfileModal.tsx");
2026-07-20 16:05:17 +00:00
export default function useOpenGameProfileModal(arg0) {
let obj = arg1;
const importDefault = arg0;
if (arg1 === undefined) {
obj = {};
}
2026-07-23 10:11:24 +00:00
const onOpened = obj.onOpened;
let c2;
2026-07-20 16:05:17 +00:00
let gameId;
2026-07-23 10:11:24 +00:00
const tmp = importDefault(onOpened[0])(arg0);
c2 = tmp;
2026-07-20 16:05:17 +00:00
gameId = tmp.gameId;
let fn;
if (tmp.shouldOpenGameProfile) {
if (null != gameId) {
fn = (stopPropagation) => {
if (null != stopPropagation) {
stopPropagation.stopPropagation();
}
if (null != stopPropagation) {
stopPropagation.preventDefault();
}
2026-07-23 10:11:24 +00:00
let obj = callback(onOpened[1]);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(callback);
2026-07-20 16:05:17 +00:00
obj["gameId"] = gameId;
2026-07-23 10:11:24 +00:00
obj["gameProfileModalChecks"] = c2;
2026-07-20 16:05:17 +00:00
obj.openGameProfileModal(obj);
if (null != onOpened) {
onOpened();
}
};
}
}
return fn;
};