decord/source/modules/profile_customization/useOpenProfileSettings.tsx
2026-08-25 06:04:03 +00:00

45 lines
1.6 KiB
TypeScript

// Module ID: 10289
// Function ID: 10290
// Name: useOpenProfileSettings
// Dependencies: [19, 1922, 10290, 676, 685, 8417, 10291, 10292, 6125, 2]
// Exports: default
// Module 10289 (useOpenProfileSettings)
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
import ME from "ME" /* 676 */;
import MAX_FAVORITES from "MAX_FAVORITES" /* 685 */;
import mergeGuildAvatarDefault from "mergeGuildAvatar" /* 1922 */;
import closure_3 from "zustandStore" /* 10290 */;
import handleFormOpen from "handleFormOpen" /* 8417 */;
noop.useCallback;
mergeGuildAvatarDefault;
const UserSettingsSections = ME.UserSettingsSections;
let closure_5 = MAX_FAVORITES.ProfileCustomizationSubsection;
const result = set.fileFinishedImporting("modules/profile_customization/useOpenProfileSettings.tsx");
export default function useOpenProfileSettings() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
const guild = obj.guild;
const scrollPosition = obj.scrollPosition;
const items = [guild, scrollPosition, obj.analyticsLocations, guild(scrollPosition[6]).useIsEligibleForUserProfileWYSIWYGEditing("useOpenProfileSettings")];
return useCallback(() => {
if (null != guild) {
let obj = guild(scrollPosition[7]);
const guildIdentitySettings = obj.initGuildIdentitySettings(tmp.id);
}
if (null != guild) {
let USER_PROFILE = closure_1_5.GUILD;
} else {
USER_PROFILE = closure_1_5.USER_PROFILE;
}
obj = { subsection: USER_PROFILE, scrollPosition };
closure_1_3.setState(obj);
obj = { screen: closure_1_4.PROFILE_CUSTOMIZATION };
guild(scrollPosition[8]).openUserSettings(obj);
}, items);
};