Files
discord-decomp/modules/activate_device/native/ActivateDeviceModal.tsx
T
2026-11-01 12:12:55 +02:00

30 lines
1.3 KiB
TypeScript

// Metro module 13012 (f13013).
import { useMemo } from "react";
import ActivateDeviceModalActionCreators from "./ActivateDeviceModalActionCreators";
import { HeaderActionButton } from "../../../design/components/Navigator/native/HeaderActionButton.native";
import Module7699 from "../../../_bundle/Module7699";
import { intl, t } from "../../../intl/index.native";
import { ActivateDevice } from "./ActivateDevice";
import { Navigator } from "../../../design/components/Navigator/native/Navigator.native";
let c8978_5 = {
ACTIVATE_DEVICE: "activate-device"
};
export default function ActivateDeviceModal(props) {
const userCode = props.userCode;
return <Navigator screens={useMemo(() => {
const userCode2 = userCode;
const onClose2 = function onClose() {
return ActivateDeviceModalActionCreators.hideModal();
};
const r8 = {};
r8[c8978_5.ACTIVATE_DEVICE] = {
fullscreen: true,
headerTitle: () => null,
headerLeft: () => <HeaderActionButton source={Module7699} onPress={onClose2} accessibilityLabel={intl.string(t.cpT0Cq)} />,
headerRight: () => null,
render: () => <ActivateDevice onClose={onClose2} prefilledUserCode={userCode2} />
};
return r8;
}, [userCode])} initialRouteName={c8978_5.ACTIVATE_DEVICE} headerBackTitle={intl.string(t["13/7kX"])} />;
};