decord/source/modules/verification/native/components/CountrySelectModal.tsx

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 8304
// Function ID: 8305
2026-07-20 16:05:17 +00:00
// Name: CountrySelectModal
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 21, 1236, 5223, 4460, 8305, 8302, 5715, 8326, 5650, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 8304 (CountrySelectModal)
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;
const result = require("getSystemLocale").fileFinishedImporting("modules/verification/native/components/CountrySelectModal.tsx");
2026-07-20 16:05:17 +00:00
export default function CountrySelectModal() {
2026-07-29 08:29:29 +00:00
const screens = React.useMemo(() => {
let obj = { COUNTRY_SELECT: null };
obj = { title: null, headerLeft: null, render: null };
const intl = callback(1236).intl;
obj[0] = intl.string(callback(1236).t.gzXECH);
2026-08-05 07:35:12 +00:00
obj[1] = callback(5223).getHeaderCloseButton(callback2(4460).pop);
2026-07-29 08:29:29 +00:00
obj[2] = function render() {
return callback2(callback(table[5]), {
2026-07-20 16:05:17 +00:00
onClose() {
2026-08-05 07:35:12 +00:00
return callback(4460).pop();
2026-07-20 16:05:17 +00:00
},
onCountrySelected(countryCode) {
2026-08-05 07:35:12 +00:00
return callback(8302).setCountryCode(countryCode);
2026-07-20 16:05:17 +00:00
}
});
};
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
2026-07-29 08:29:29 +00:00
}, []);
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => () => {
2026-08-05 07:35:12 +00:00
callback(5715).runAfterInteractions(callback(8326).setCountrySelectorClosed, 400);
2026-07-20 16:05:17 +00:00
}, []);
2026-08-05 07:35:12 +00:00
return jsx(require(5650) /* NavigationStack */.Navigator, { screens, initialRouteName: "COUNTRY_SELECT" });
2026-07-20 16:05:17 +00:00
};