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

50 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-04 21:03:28 +00:00
// Module ID: 13128
// Function ID: 13129
2026-07-20 16:05:17 +00:00
// Name: ActivateDeviceModal
2026-08-04 21:03:28 +00:00
// Dependencies: [19, 21, 13127, 5917, 7837, 1236, 13129, 5665, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-04 21:03:28 +00:00
// Module 13128 (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-04 21:03:28 +00:00
const result = require("module_13127").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-04 08:36:32 +00:00
return jsx(userCode(5665).Navigator, { screens: memo, initialRouteName: constants.ACTIVATE_DEVICE, headerBackTitle: null });
2026-07-20 16:05:17 +00:00
};