decord/source/modules/voice_calls/native/ConfirmStartCall.tsx

42 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10074
2026-07-27 11:26:19 +00:00
// Function ID: 78093
2026-07-20 16:05:17 +00:00
// Name: ConfirmStartCall
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 4476, 1212, 4476, 4473, 2]
2026-07-20 16:05:17 +00:00
// Exports: confirmStartCall
2026-07-25 08:10:48 +00:00
// Module 10074 (ConfirmStartCall)
2026-07-23 10:11:24 +00:00
import "result";
import jsxProd from "jsxProd";
let closure_2;
let closure_3;
const require = arg1;
2026-07-20 16:05:17 +00:00
function ConfirmStartCall(onConfirm) {
let obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.title = intl.string(require(1212) /* getSystemLocale */.t.HlAPoq);
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.content = intl2.string(require(1212) /* getSystemLocale */.t["cRW4D/"]);
2026-07-20 16:05:17 +00:00
obj = {};
obj = { variant: "active" };
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
obj.text = intl3.string(require(1212) /* getSystemLocale */.t.rimG2R);
2026-07-20 16:05:17 +00:00
obj.onPress = onConfirm.onConfirm;
2026-07-25 08:10:48 +00:00
const items = [callback(require(4476) /* getAlertModalItemKey */.AlertActionButton, obj, "confirm"), ];
2026-07-20 16:05:17 +00:00
const obj1 = { variant: "secondary" };
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
obj1.text = intl4.string(require(1212) /* getSystemLocale */.t["ETE/oC"]);
2026-07-25 08:10:48 +00:00
items[1] = callback(require(4476) /* getAlertModalItemKey */.AlertActionButton, obj1, "cancel");
2026-07-20 16:05:17 +00:00
obj.children = items;
2026-07-25 08:10:48 +00:00
obj.actions = callback2(require(4476) /* getAlertModalItemKey */.AlertActions, obj);
return callback(require(4476) /* getAlertModalItemKey */.AlertModal, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
({ jsx: closure_2, jsxs: closure_3 } = jsxProd);
const result = require("getAlertModalItemKey").fileFinishedImporting("modules/voice_calls/native/ConfirmStartCall.tsx");
2026-07-20 16:05:17 +00:00
export const confirmStartCall = function confirmStartCall(fn) {
2026-07-25 08:10:48 +00:00
let obj = require(4473) /* useAlertStore */;
2026-07-20 16:05:17 +00:00
obj = { onConfirm: fn };
obj.openAlert("start-voice-call", callback(ConfirmStartCall, obj));
};