decord/beta/source/modules/premium/FriendAnniversaryNotificationUtils.tsx
2026-10-12 16:32:48 +00:00

24 lines
1.2 KiB
TypeScript

// Module ID: 15800
// Function ID: 15801
// Name: FriendAnniversaryNotificationUtils
// Dependencies: [1085, 4763, 2041, 1265, 2]
// Exports: onFriendAnniversaryNotificationSettingsChanged
// Module 15800 (FriendAnniversaryNotificationUtils)
import Constants from "Constants" /* 1085 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
import UserSettings from "UserSettings" /* 2041 */;
import NotificationConstants from "NotificationConstants" /* 4763 */;
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);
};