decord/source/modules/notifications/summary_reminder/SummaryReminderNotificationUtils.tsx

23 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 15546
// Function ID: 15547
// Name: SummaryReminderNotificationUtils
// Dependencies: [4225, 1074, 1935, 1242, 2]
2026-07-20 16:05:17 +00:00
// Exports: onSummaryReminderNotificationSettingsChanged
// Module 15546 (SummaryReminderNotificationUtils)
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import UserSettings from "UserSettings" /* 1935 */;
import NotificationConstants from "NotificationConstants" /* 4225 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const constants = NotificationConstants.NotificationSettingsUpdateType;
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/notifications/summary_reminder/SummaryReminderNotificationUtils.tsx");
2026-07-20 16:05:17 +00:00
export const onSummaryReminderNotificationSettingsChanged = function onSummaryReminderNotificationSettingsChanged(summary_reminder_notifications) {
const EnableSummaryReminderNotifications = UserSettings.EnableSummaryReminderNotifications;
2026-07-20 16:05:17 +00:00
EnableSummaryReminderNotifications.updateSetting(summary_reminder_notifications);
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED, { update_type: constants.ACCOUNT, summary_reminder_notifications });
2026-07-20 16:05:17 +00:00
};