decord/source/modules/profile_customization/useOpenProfileSettings.tsx

41 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 9814
// Function ID: 9815
2026-07-20 16:05:17 +00:00
// Name: useOpenProfileSettings
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 1874, 9815, 676, 685, 7942, 9816, 9817, 6614, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 9814 (useOpenProfileSettings)
2026-07-29 08:29:29 +00:00
import "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
import zustandStore from "zustandStore";
import { UserSettingsSections } from "ME";
import { ProfileCustomizationSubsection as closure_5 } from "MAX_FAVORITES";
2026-07-29 08:29:29 +00:00
import handleFormOpen from "handleFormOpen";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
require("noop").useCallback;
2026-07-23 10:11:24 +00:00
const result = require("zustandStore").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-07-23 10:11:24 +00:00
let USER_PROFILE = outer1_5.GUILD;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
USER_PROFILE = outer1_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-07-23 10:11:24 +00:00
outer1_3.setState(obj);
obj = { screen: outer1_4.PROFILE_CUSTOMIZATION };
2026-07-20 16:05:17 +00:00
guild(scrollPosition[8]).openUserSettings(obj);
}, items);
};