// Module ID: 9161 // Function ID: 9162 // Name: useOpenGameProfileModal // Dependencies: [9162, 9166, 2] // Exports: default // Module 9161 (useOpenGameProfileModal) const result = require("set").fileFinishedImporting("modules/game_profile/hooks/useOpenGameProfileModal.tsx"); export default function useOpenGameProfileModal(arg0) { const importDefault = arg0; let obj = arg1; if (arg1 === undefined) { obj = {}; } const onOpened = obj.onOpened; let c2; let gameId; const tmp = importDefault(onOpened[0])(arg0); c2 = tmp; gameId = tmp.gameId; let fn; if (tmp.shouldOpenGameProfile) { if (null != gameId) { fn = (stopPropagation) => { if (stopPropagation != null) { stopPropagation.stopPropagation(); } if (stopPropagation != null) { stopPropagation.preventDefault(); } let obj = callback(onOpened[1]); obj = {}; const merged = Object.assign(callback); obj.gameId = gameId; obj.gameProfileModalChecks = c2; obj.openGameProfileModal(obj); if (onOpened != null) { onOpened(); } }; } } return fn; };