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

40 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 7782
// Function ID: 7783
2026-07-20 16:05:17 +00:00
// Name: CountrySelectModal
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 1233, 5503, 4723, 7783, 7780, 6054, 7808, 6016, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 7782 (CountrySelectModal)
import NavigationStack from "NavigationStack" /* 6016 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").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 };
2026-09-02 09:53:35 +00:00
const intl = callback(1233).intl;
obj[0] = intl.string(callback(1233).t.gzXECH);
obj[1] = callback(5503).getHeaderCloseButton(callback2(4723).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-09-01 10:26:29 +00:00
return callback(4723).pop();
2026-07-20 16:05:17 +00:00
},
onCountrySelected(countryCode) {
2026-09-02 09:53:35 +00:00
return callback(7780).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-09-02 09:53:35 +00:00
callback(6054).runAfterInteractions(callback(7808).setCountrySelectorClosed, 400);
2026-07-20 16:05:17 +00:00
}, []);
2026-08-24 06:08:38 +00:00
return jsx(NavigationStack.Navigator, { screens, initialRouteName: "COUNTRY_SELECT" });
2026-07-20 16:05:17 +00:00
};