decord/source/modules/native_permissions/mobile/PermissionsAlertModal.tsx
2026-08-26 06:04:24 +00:00

33 lines
1.3 KiB
TypeScript

// Module ID: 5040
// Function ID: 5041
// Name: PermissionsAlertModal
// Dependencies: [19, 21, 4814, 4814, 1236, 2]
// Exports: default
// Module 5040 (PermissionsAlertModal)
import noopAll from "noop" /* 19 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import getAlertModalItemKey from "getAlertModalItemKey" /* 4814 */;
import jsxProd from "jsxProd" /* 21 */;
require = arg1;
noopAll;
({ jsx: obj1, jsxs: c3 } = jsxProd);
const result = require("set").fileFinishedImporting("modules/native_permissions/mobile/PermissionsAlertModal.tsx");
export default function PermissionsAlertModal(arg0) {
({ title, body, onConfirm } = arg0);
let obj = { title, content: body, actions: null };
obj = { children: null };
obj = { onPress: onConfirm, text: null };
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");
obj[0] = items;
obj[2] = callback2(getAlertModalItemKey.AlertActions, obj);
return callback(getAlertModalItemKey.AlertModal, obj);
};