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