decord/source/modules/profile_customization/useOpenProfileSettings.tsx

46 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 9045
// Function ID: 9046
2026-07-20 16:05:17 +00:00
// Name: useOpenProfileSettings
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 1921, 9046, 673, 682, 8078, 9047, 9048, 6254, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 9045 (useOpenProfileSettings)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
import MAX_FAVORITES from "MAX_FAVORITES" /* 682 */;
import mergeGuildAvatarDefault from "mergeGuildAvatar" /* 1921 */;
import closure_3 from "zustandStore" /* 9046 */;
import handleFormOpen from "handleFormOpen" /* 8078 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
noop.useCallback;
mergeGuildAvatarDefault;
const UserSettingsSections = ME.UserSettingsSections;
let closure_5 = MAX_FAVORITES.ProfileCustomizationSubsection;
const result = set.fileFinishedImporting("modules/profile_customization/useOpenProfileSettings.tsx");
2026-07-20 16:05:17 +00:00
export default function useOpenProfileSettings() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
const guild = obj.guild;
const scrollPosition = obj.scrollPosition;
2026-07-23 10:11:24 +00:00
const items = [guild, scrollPosition, obj.analyticsLocations, guild(scrollPosition[6]).useIsEligibleForUserProfileWYSIWYGEditing("useOpenProfileSettings")];
2026-07-20 16:05:17 +00:00
return useCallback(() => {
if (null != guild) {
let obj = guild(scrollPosition[7]);
2026-07-29 08:29:29 +00:00
const guildIdentitySettings = obj.initGuildIdentitySettings(tmp.id);
2026-07-20 16:05:17 +00:00
}
if (null != guild) {
2026-08-24 06:08:38 +00:00
let USER_PROFILE = closure_1_5.GUILD;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
USER_PROFILE = closure_1_5.USER_PROFILE;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { subsection: USER_PROFILE, scrollPosition };
2026-08-24 06:08:38 +00:00
closure_1_3.setState(obj);
obj = { screen: closure_1_4.PROFILE_CUSTOMIZATION };
2026-07-20 16:05:17 +00:00
guild(scrollPosition[8]).openUserSettings(obj);
}, items);
};