// Module ID: 8452 // Function ID: 8453 // Name: useCurrentUser // Dependencies: [1376, 558, 568, 504, 38, 2] // Module 8452 (useCurrentUser) import _modDef38 from "module_38" /* 38 */; import initialize from "initialize" /* 504 */; import c from "c" /* 568 */; import UserStore from "UserStore" /* 1376 */; require = fn; fn(558); const ReactCompilerGating = fn(558); const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (() => { const cResult = c.c(2); if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [UserStore]; const fn = function n() { return currentUser.getCurrentUser(); }; cResult[0] = items; cResult[1] = fn; tmp4 = items; tmp5 = fn; } else { [tmp4, tmp5] = cResult; } const stateFromStores = initialize.useStateFromStores(tmp4, tmp5); _modDef38(null != stateFromStores, "user has to be signed in before accessing shop"); return stateFromStores; }) : (() => { const items = [UserStore]; const stateFromStores = initialize.useStateFromStores(items, () => currentUser.getCurrentUser()); _modDef38(null != stateFromStores, "user has to be signed in before accessing shop"); return stateFromStores; }); const size = fn(2); const result = size.fileFinishedImporting("modules/collectibles/hooks/useCurrentUser.tsx"); export const useCurrentUser = tmp2; export const useCurrentUserIfAvailable = ReactCompilerGating.isReactCompilerEnabled() ? (() => { const cResult = c.c(2); if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [UserStore]; const fn = function n() { return currentUser.getCurrentUser(); }; cResult[0] = items; cResult[1] = fn; tmp4 = items; tmp5 = fn; } else { [tmp4, tmp5] = cResult; } return initialize.useStateFromStores(tmp4, tmp5); }) : (() => { const items = [UserStore]; return initialize.useStateFromStores(items, () => currentUser.getCurrentUser()); });