decord/beta/source/modules/premium/FriendAnniversaryNotificationUtils.tsx
2026-10-01 14:13:23 +00:00

24 lines
1.2 KiB
TypeScript

// Module ID: 15052
// Function ID: 15053
// Name: FriendAnniversaryNotificationUtils
// Dependencies: [1074, 4482, 2021, 1241, 2]
// Exports: onFriendAnniversaryNotificationSettingsChanged
// Module 15052 (FriendAnniversaryNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import UserSettings from "UserSettings" /* 2021 */;
import NotificationConstants from "NotificationConstants" /* 4482 */;
import size from "module_2" /* 2 */;
const AnalyticEvents = Constants.AnalyticEvents;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const result = size.fileFinishedImporting("modules/premium/FriendAnniversaryNotificationUtils.tsx");
export const onFriendAnniversaryNotificationSettingsChanged = function onFriendAnniversaryNotificationSettingsChanged(friend_anniversary_notifications) {
const EnableFriendAnniversaryNotifications = UserSettings.EnableFriendAnniversaryNotifications;
EnableFriendAnniversaryNotifications.updateSetting(friend_anniversary_notifications);
const obj = AnalyticsUtilsDefault;
const obj2 = { update_type: constants.ACCOUNT, friend_anniversary_notifications };
obj.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, obj2);
};