decord/source/modules/activate_device/native/ActivateDeviceModal.tsx

50 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-13 17:34:28 +00:00
// Module ID: 13290
// Function ID: 13291
2026-07-20 16:05:17 +00:00
// Name: ActivateDeviceModal
2026-08-13 17:34:28 +00:00
// Dependencies: [19, 21, 13289, 6051, 8072, 1236, 13291, 5823, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 17:34:28 +00:00
// Module 13290 (ActivateDeviceModal)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
let closure_5 = { ACTIVATE_DEVICE: "activate-device" };
2026-08-13 17:34:28 +00:00
const result = require("module_13289").fileFinishedImporting("modules/activate_device/native/ActivateDeviceModal.tsx");
2026-07-20 16:05:17 +00:00
export default function ActivateDeviceModal(userCode) {
userCode = userCode.userCode;
const items = [userCode];
2026-07-29 08:29:29 +00:00
const memo = React.useMemo(() => {
2026-07-20 16:05:17 +00:00
function onClose() {
2026-07-29 08:29:29 +00:00
return onClose(table[2]).hideModal();
2026-07-20 16:05:17 +00:00
}
return {
2026-07-29 08:29:29 +00:00
[outer1_5.ACTIVATE_DEVICE]: {
2026-07-20 16:05:17 +00:00
fullscreen: true,
headerTitle() {
return null;
},
headerLeft() {
2026-07-29 08:29:29 +00:00
const obj = { source: null, onPress: null, accessibilityLabel: null };
obj[0] = onClose(outer1_2[4]);
obj[1] = onClose;
const intl = callback(outer1_2[5]).intl;
obj[2] = intl.string(callback(outer1_2[5]).t.cpT0Cq);
return outer1_4(callback(outer1_2[3]).HeaderActionButton, obj);
2026-07-20 16:05:17 +00:00
},
headerRight() {
return null;
},
render() {
2026-07-29 08:29:29 +00:00
return outer1_4(callback(outer1_2[6]).ActivateDevice, { onClose, prefilledUserCode: callback });
2026-07-20 16:05:17 +00:00
}
}
};
2026-07-29 08:29:29 +00:00
}, items);
let obj = { screens: memo, initialRouteName: constants.ACTIVATE_DEVICE, headerBackTitle: null };
let intl = userCode(1236).intl;
obj[2] = intl.string(userCode(1236).t["13/7kX"]);
2026-08-13 07:00:46 +00:00
return jsx(userCode(5823).Navigator, { screens: memo, initialRouteName: constants.ACTIVATE_DEVICE, headerBackTitle: null });
2026-07-20 16:05:17 +00:00
};