decord/source/modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx

61 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10253
// Function ID: 79329
2026-07-20 16:05:17 +00:00
// Name: NotificationSettingsMuteBanner
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 4131, 689, 4127, 4544, 1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: NotificationSettingsMuteBanner, getMuteBannerSubtitleFromConfig
2026-07-27 11:26:19 +00:00
// Module 10253 (NotificationSettingsMuteBanner)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { padding: 16, display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-between", borderRadius: require("_createForOfIteratorHelperLoose").radii.lg + 8, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BRAND };
_createForOfIteratorHelperLoose.card = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("jsxProd").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx");
export const NotificationSettingsMuteBanner = function NotificationSettingsMuteBanner(style) {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
const items = [style.style, _createForOfIteratorHelperLoose().card];
2026-07-20 16:05:17 +00:00
obj.style = items;
2026-07-23 10:11:24 +00:00
obj = { style: { flex: 1, marginRight: 8 } };
obj = { variant: "text-md/semibold", color: "text-overlay-light", children: style.title };
2026-07-25 08:10:48 +00:00
const items1 = [callback(require(4127) /* Text */.Text, obj), ];
2026-07-23 10:11:24 +00:00
const obj1 = { variant: "text-xs/medium", color: "text-overlay-light", children: style.subtitle };
2026-07-25 08:10:48 +00:00
items1[1] = callback(require(4127) /* Text */.Text, obj1);
2026-07-20 16:05:17 +00:00
obj.children = items1;
const items2 = [callback2(View, obj), ];
const obj2 = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj2.text = intl.string(require(1212) /* getSystemLocale */.t.YqAjXy);
obj2.onPress = style.onPressUnmute;
2026-07-20 16:05:17 +00:00
obj2.variant = "primary-overlay";
2026-07-25 08:10:48 +00:00
items2[1] = callback(require(4544) /* Button */.Button, obj2);
2026-07-20 16:05:17 +00:00
obj.children = items2;
return callback2(View, obj);
};
export const getMuteBannerSubtitleFromConfig = function getMuteBannerSubtitleFromConfig(config) {
let end_time;
if (null != config) {
end_time = config.end_time;
}
if (null == end_time) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
let stringResult = intl.string(require(1212) /* getSystemLocale */.t["tFqP/P"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj = {};
const _Date = Date;
const date = new Date(config.end_time);
2026-07-23 10:11:24 +00:00
obj.endTime = date.toLocaleString(require(1212) /* getSystemLocale */.intl.currentLocale, { month: "numeric", day: "numeric", hour: "numeric", minute: "2-digit" });
stringResult = intl2.formatToPlainString(require(1212) /* getSystemLocale */.t.C7m4oh, obj);
2026-07-20 16:05:17 +00:00
}
return stringResult;
};