decord/source/modules/collectibles/hooks/useCurrentUser.tsx

25 lines
950 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9213
// Function ID: 9214
2026-07-20 16:05:17 +00:00
// Name: useCurrentUser
2026-08-11 06:20:06 +00:00
// Dependencies: [1922, 589, 38, 2]
2026-07-20 16:05:17 +00:00
// Exports: useCurrentUser, useCurrentUserIfAvailable
2026-08-24 06:08:38 +00:00
// Module 9213 (useCurrentUser)
import _modDef38 from "module_38" /* 38 */;
import initialize from "initialize" /* 589 */;
import closure_3 from "mergeGuildAvatar" /* 1922 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/collectibles/hooks/useCurrentUser.tsx");
2026-07-20 16:05:17 +00:00
export const useCurrentUser = function useCurrentUser() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
const stateFromStores = initialize.useStateFromStores(items, () => currentUser.getCurrentUser());
_modDef38(null != stateFromStores, "user has to be signed in before accessing shop");
2026-07-20 16:05:17 +00:00
return stateFromStores;
};
export const useCurrentUserIfAvailable = function useCurrentUserIfAvailable() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
return initialize.useStateFromStores(items, () => currentUser.getCurrentUser());
2026-07-20 16:05:17 +00:00
};