decord/source/modules/user_profile/native/UserProfileEditNoteModal.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

64 lines
2.2 KiB
TypeScript

// Module ID: 13061
// Function ID: 13062
// Name: UserProfileEditNoteModal
// Dependencies: [32, 19, 21, 1483, 4763, 7000, 1116, 1114, 4556, 5624, 13062, 2]
// Exports: default
// Module 13061 (UserProfileEditNoteModal)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileEditNoteModal.tsx");
export default function UserProfileEditNoteModal(arg0) {
({ userId: navigation, onSave: closure_1, onBack: dependencyMap } = arg0);
let callback;
function handleClose() {
let arr = callback(closure_1_2[4]);
arr = arr.pop();
if (dependencyMap != null) {
dependencyMap();
}
}
navigation = undefined;
closure_1 = undefined;
let obj = navigation(1483);
navigation = obj.useNavigation();
const tmp4 = callback(handleClose.useState(false), 2);
closure_1 = tmp4[1];
const items = [navigation];
const effect = handleClose.useEffect(() => navigation.addListener("transitionEnd", (data) => {
if (!data.data.closing) {
callback(true);
}
}), items);
callback = tmp4[0];
obj1 = navigation(1116);
obj = { initialRouteName: "root", headerStatusBarHeight: num, headerStyle: null, screens: null };
let tmpResult = tmp(1116);
obj = undefined;
if (!tmpResult.isAndroid()) {
obj = { height: 56 };
}
obj[2] = obj;
obj1 = { root: null };
const obj2 = { title: null, headerTitle: null, headerLeft: null, render: null };
let intl = tmp(1114).intl;
obj2[0] = intl.string(navigation(1114).t.sHHsOM);
obj2[1] = function headerTitle() {
const obj = { variant: "redesign/heading-18/bold", accessibilityRole: "header", children: null };
const intl = navigation(1114).intl;
obj[2] = intl.string(navigation(1114).t.sHHsOM);
return callback2(navigation(4556).Text, obj);
};
tmpResult = tmp(5624);
obj2[2] = tmpResult.getHeaderCloseButton(handleClose);
obj2[3] = function render() {
return closure_1_5(navigation(closure_1_2[10]).default, { userId: navigation, onSave: closure_1, onClose: handleClose, shouldFocusInput: closure_3 });
};
obj1[0] = obj2;
obj[3] = obj1;
return jsx(navigation(7000).Navigator, obj);
};