decord/source/modules/user_profile/native/UserProfileEditNoteModal.tsx

65 lines
2.4 KiB
TypeScript
Raw Normal View History

// Module ID: 13150
// Function ID: 13151
2026-07-20 16:05:17 +00:00
// Name: UserProfileEditNoteModal
// Dependencies: [32, 19, 21, 1483, 4809, 7073, 1116, 1114, 4602, 5675, 13151, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13150 (UserProfileEditNoteModal)
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4809 */;
import UserProfileEditNote from "UserProfileEditNote" /* 13151 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileEditNoteModal.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileEditNoteModal(arg0) {
({ userId: navigation, onSave: closure_1, onBack: dependencyMap } = arg0);
_slicedToArray = undefined;
2026-07-20 16:05:17 +00:00
function handleClose() {
ModalActionCreatorsDefault.pop();
2026-07-29 08:29:29 +00:00
if (dependencyMap != null) {
dependencyMap();
2026-07-20 16:05:17 +00:00
}
}
navigation = undefined;
onSave = undefined;
navigation = navigation(1483).useNavigation();
[_slicedToArray, onSave] = handleClose.useState(false);
const items = [navigation];
const effect = handleClose.useEffect(() => navigation.addListener("transitionEnd", (data) => {
if (!data.data.closing) {
onSave(true);
}
}), items);
let obj = navigation(1483);
const tmp6 = jsx;
const obj3 = { initialRouteName: "root", headerStatusBarHeight: 12, headerStyle: null, screens: null };
const obj2 = navigation(1116);
let obj4;
if (!tmpResult.isAndroid()) {
obj4 = { height: 56 };
2026-07-20 16:05:17 +00:00
}
obj3.headerStyle = obj4;
const obj5 = { root: null };
const obj6 = { title: null, headerTitle: null, headerLeft: null, render: null };
let intl = tmp(1114).intl;
obj6.title = intl.string(navigation(1114).t.sHHsOM);
obj6.headerTitle = function headerTitle() {
2026-07-29 08:29:29 +00:00
const obj = { variant: "redesign/heading-18/bold", accessibilityRole: "header", children: null };
const intl = navigation(1114).intl;
obj.children = intl.string(navigation(1114).t.sHHsOM);
return jsx(navigation(4602).Text, { variant: "redesign/heading-18/bold", accessibilityRole: "header", children: null });
2026-07-20 16:05:17 +00:00
};
tmpResult = navigation(1116);
obj6.headerLeft = navigation(5675).getHeaderCloseButton(handleClose);
obj6.render = function render() {
return jsx(UserProfileEditNote.default, { userId: navigation, onSave, onClose: handleClose, shouldFocusInput });
2026-07-20 16:05:17 +00:00
};
obj5.root = obj6;
obj3.screens = obj5;
return tmp6(navigation(7073).Navigator, obj3);
2026-07-20 16:05:17 +00:00
};