decord/source/modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx

48 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10325
// Function ID: 79698
2026-07-20 16:05:17 +00:00
// Name: getPushNotificationSelectOptions
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 4326, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: getPushNotificationSelectOptions, getUnreadSelectOptions
2026-07-24 07:16:23 +00:00
// Module 10325 (getPushNotificationSelectOptions)
2026-07-23 10:11:24 +00:00
import { UserNotificationSettings } from "ME";
import { UnreadSetting } from "ReadStateTypes";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const result = require("getSystemLocale").fileFinishedImporting("modules/notifications/settings/utils/notificationSettingsPresetOptionUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getPushNotificationSelectOptions = function getPushNotificationSelectOptions() {
let obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.label = intl.string(require(1212) /* getSystemLocale */.t["HVah/3"]);
2026-07-20 16:05:17 +00:00
obj.value = UserNotificationSettings.ALL_MESSAGES;
const items = [obj, , ];
obj = {};
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.label = intl2.string(require(1212) /* getSystemLocale */.t["tu+ZWJ"]);
2026-07-20 16:05:17 +00:00
obj.value = UserNotificationSettings.ONLY_MENTIONS;
items[1] = obj;
obj = {};
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
obj.label = intl3.string(require(1212) /* getSystemLocale */.t.X4wWUi);
2026-07-20 16:05:17 +00:00
obj.value = UserNotificationSettings.NO_MESSAGES;
items[2] = obj;
return items;
};
export const getUnreadSelectOptions = function getUnreadSelectOptions(notificationSetting) {
let obj = {};
notificationSetting = undefined;
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.label = intl.string(require(1212) /* getSystemLocale */.t["HVah/3"]);
2026-07-20 16:05:17 +00:00
obj.value = UnreadSetting.ALL_MESSAGES;
const items = [obj, ];
obj = { value: UnreadSetting.ONLY_MENTIONS };
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.label = intl2.string(require(1212) /* getSystemLocale */.t["tu+ZWJ"]);
2026-07-20 16:05:17 +00:00
if (null != notificationSetting) {
notificationSetting = notificationSetting.notificationSetting;
}
obj.disabled = notificationSetting === UserNotificationSettings.ALL_MESSAGES;
items[1] = obj;
return items;
};