decord/alpha/source/modules/premium/FriendAnniversaryNotificationUtils.tsx

23 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 15856
// Function ID: 15857
// Name: FriendAnniversaryNotificationUtils
// Dependencies: [1074, 4477, 2020, 1241, 2]
2026-07-20 16:05:17 +00:00
// Exports: onFriendAnniversaryNotificationSettingsChanged
// Module 15856 (FriendAnniversaryNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import UserSettings from "UserSettings" /* 2020 */;
import NotificationConstants from "NotificationConstants" /* 4477 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const constants = NotificationConstants.NotificationSettingsUpdateType;
const result = size.fileFinishedImporting("modules/premium/FriendAnniversaryNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onFriendAnniversaryNotificationSettingsChanged = function onFriendAnniversaryNotificationSettingsChanged(friend_anniversary_notifications) {
const EnableFriendAnniversaryNotifications = UserSettings.EnableFriendAnniversaryNotifications;
2026-07-20 16:05:17 +00:00
EnableFriendAnniversaryNotifications.updateSetting(friend_anniversary_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, friend_anniversary_notifications });
2026-07-20 16:05:17 +00:00
};