decord/source/modules/native_permissions/mobile/PermissionsAlertModal.tsx

34 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 5102
// Function ID: 5103
2026-07-20 16:05:17 +00:00
// Name: PermissionsAlertModal
2026-09-03 10:05:34 +00:00
// Dependencies: [19, 21, 4864, 4864, 1233, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-03 10:05:34 +00:00
// Module 5102 (PermissionsAlertModal)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-09-02 09:53:35 +00:00
import getSystemLocale from "getSystemLocale" /* 1233 */;
2026-09-03 10:05:34 +00:00
import getAlertModalItemKey from "getAlertModalItemKey" /* 4864 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: obj1, jsxs: c3 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/native_permissions/mobile/PermissionsAlertModal.tsx");
2026-07-20 16:05:17 +00:00
export default function PermissionsAlertModal(arg0) {
({ title, body, onConfirm } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { title, content: body, actions: null };
obj = { children: null };
obj = { onPress: onConfirm, text: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.jVcuVY);
const items = [callback(getAlertModalItemKey.AlertActionButton, obj, "confirm"), ];
obj1 = { variant: "secondary", text: null };
const intl2 = getSystemLocale.intl;
obj1[1] = intl2.string(getSystemLocale.t.cpT0Cq);
items[1] = callback(getAlertModalItemKey.AlertActionButton, obj1, "close");
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
obj[2] = callback2(getAlertModalItemKey.AlertActions, obj);
return callback(getAlertModalItemKey.AlertModal, obj);
2026-07-20 16:05:17 +00:00
};