decord/source/modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

22 lines
1.2 KiB
TypeScript

// Module ID: 15571
// Function ID: 15572
// Name: ProfileUpdatesNotificationUtils
// Dependencies: [4258, 1074, 1935, 1242, 2]
// Exports: onProfileUpdatesNotificationSettingsChanged
// Module 15571 (ProfileUpdatesNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import UserSettings from "UserSettings" /* 1935 */;
import NotificationConstants from "NotificationConstants" /* 4258 */;
import size from "module_2" /* 2 */;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/notifications/profile_updates/ProfileUpdatesNotificationUtils.tsx");
export const onProfileUpdatesNotificationSettingsChanged = function onProfileUpdatesNotificationSettingsChanged(profile_updates_notifications) {
const EnableProfileUpdatesNotifications = UserSettings.EnableProfileUpdatesNotifications;
EnableProfileUpdatesNotifications.updateSetting(profile_updates_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, profile_updates_notifications });
};