decord/beta/source/modules/game_console/useGameConsoleAccounts.tsx

48 lines
1.9 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 11108
// Function ID: 11109
// Name: useGameConsoleAccounts
2026-10-12 16:32:48 +00:00
// Dependencies: [5761, 1085, 558, 576, 1388, 504, 2]
2026-10-12 16:32:48 +00:00
// Module 11108 (useGameConsoleAccounts)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-07 22:43:51 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-12 16:32:48 +00:00
import GlobalUtils from "GlobalUtils" /* 1388 */;
import ConnectedAccountsStore from "ConnectedAccountsStore" /* 5761 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-02 13:37:24 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-01 14:13:23 +00:00
const PlatformTypes = Constants.PlatformTypes;
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGameConsoleAccounts() {
2026-10-02 13:37:24 +00:00
let tmp4;
let tmp5;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
let items = [ConnectedAccountsStore];
2026-10-12 16:32:48 +00:00
const fn = function l() {
2026-10-02 13:37:24 +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);
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
const tmpResult = get_initialized;
return tmpResult.useStateFromStoresArray(tmp4, tmp5);
2026-10-12 16:32:48 +00:00
}) : (function useGameConsoleAccounts() {
let items = [ConnectedAccountsStore];
2026-10-01 14:13:23 +00:00
const obj = get_initialized;
return obj.useStateFromStoresArray(items, () => {
const items = [ConnectedAccountsStore.getAccount(null, constants.XBOX), ConnectedAccountsStore.getAccount(null, constants.PLAYSTATION), ConnectedAccountsStore.getAccount(null, constants.PLAYSTATION_STAGING)];
return items.filter(GlobalUtils.isNotNullish);
});
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/game_console/useGameConsoleAccounts.tsx");
export default tmp2;