2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 9240
|
|
|
|
|
// Function ID: 9241
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useGameConsoleAccounts
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [5593, 1074, 504, 1370, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 9240 (useGameConsoleAccounts)
|
2026-10-01 14:13:23 +00:00
|
|
|
import get_initialized from "get initialized" /* 504 */;
|
|
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import GlobalUtils from "GlobalUtils" /* 1370 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import ConnectedAccountsStore from "ConnectedAccountsStore" /* 5593 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const PlatformTypes = Constants.PlatformTypes;
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/game_console/useGameConsoleAccounts.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function useGameConsoleAccounts() {
|
2026-09-18 19:45:33 +00:00
|
|
|
let items = [ConnectedAccountsStore];
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = get_initialized;
|
|
|
|
|
return obj.useStateFromStoresArray(items, () => {
|
2026-09-18 19:45:33 +00:00
|
|
|
const items = [ConnectedAccountsStore.getAccount(null, constants.XBOX), ConnectedAccountsStore.getAccount(null, constants.PLAYSTATION), ConnectedAccountsStore.getAccount(null, constants.PLAYSTATION_STAGING)];
|
|
|
|
|
return items.filter(GlobalUtils.isNotNullish);
|
|
|
|
|
});
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|