52 lines
3.2 KiB
TypeScript
52 lines
3.2 KiB
TypeScript
/* Metro module 9708; source: modules/voice_calls/native/ConfirmStartCall.tsx; dependencies: [31, 33, 4500, 1244, 4500, 4497, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as UseAlertStoreNativeModule from '../../../design/components/AlertModal/native/useAlertStore.native.tsx'; /* Metro dependency 4497 */
|
|
import * as AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
|
|
|
|
function _fun76304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9894:6, offset: 0x01dc9b1d, size: 151 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/voice_calls/native/ConfirmStartCall.tsx');
|
|
exports.confirmStartCall = confirmStartCall;
|
|
function ConfirmStartCall({onConfirm}) { // fn#76305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9894:131, offset: 0x01dc9bb4, size: 390 bytes, params: 2, frame: 29
|
|
const AlertModal = (AlertModalNativeModule).AlertModal;
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const HlAPoq = (require(1244) /* metro dependency 1244: indexNative */).t.HlAPoq;
|
|
object.title = Reflect.apply(string, intl, [HlAPoq]);
|
|
object.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['cRW4D/']);
|
|
const AlertActions = (AlertModalNativeModule).AlertActions;
|
|
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
|
|
object.actions = (
|
|
<AlertActions>
|
|
<AlertActionButton
|
|
variant="active"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rimG2R)}
|
|
onPress={onConfirm}
|
|
key="confirm"
|
|
/>
|
|
<AlertActionButton
|
|
variant="secondary"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
|
key="cancel"
|
|
/>
|
|
</AlertActions>
|
|
);
|
|
return <AlertModal {...object} />;
|
|
}
|
|
|
|
function confirmStartCall(a0) { // fn#76306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9894:658, offset: 0x01dc9d3a, size: 69 bytes, params: 2, frame: 16
|
|
(UseAlertStoreNativeModule).openAlert('start-voice-call',
|
|
<ConfirmStartCall onConfirm={a0} />);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun76304, 9708, [31, 33, 4500, 1244, 4500, 4497,
|
|
2]) /* metro module 9708, dependencies: [31, 33, 4500, 1244, 4500, 4497, 2] */;
|