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

96 lines
3.1 KiB
TypeScript
Raw Normal View History

// Module ID: 13182
// Function ID: 13183
2026-07-20 16:05:17 +00:00
// Name: UserProfileNote
// Dependencies: [19, 21, 4636, 8307, 13183, 8014, 13185, 5204, 1114, 4603, 13187, 7310, 4632, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13182 (UserProfileNote)
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
import openEditNoteModalDefault from "openEditNoteModal" /* 13187 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
let closure_4 = createStyles.createStyles({ title: { justifyContent: "space-between" } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileNote.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileNote(style) {
const userId = style.userId;
2026-07-23 10:11:24 +00:00
const onBack = style.onBack;
2026-07-29 08:29:29 +00:00
let trackUserProfileAction;
const tmp = closure_4();
trackUserProfileAction = userId(trackUserProfileAction[3]).useUserProfileAnalyticsContext().trackUserProfileAction;
2026-07-23 10:11:24 +00:00
const note = onBack(trackUserProfileAction[4])(userId).note;
2026-07-29 08:29:29 +00:00
let tmp6Result = null != note;
if (tmp6Result) {
tmp6Result = "" !== note;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (tmp6Result) {
let PaperPlusIcon = tmp2(tmp3[5]).PaperIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
PaperPlusIcon = tmp2(tmp3[6]).PaperPlusIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const intl = tmp2(tmp3[8]).intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-29 08:29:29 +00:00
const t = tmp2(tmp3[8]).t;
if (tmp6Result) {
2026-07-23 10:11:24 +00:00
let stringResult = string(t["gs+qcM"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
stringResult = string(t["1ZZtts"]);
2026-07-20 16:05:17 +00:00
}
const obj2 = {
2026-08-24 06:08:38 +00:00
accessibilityRole: "button",
accessibilityHint: stringResult,
accessibilityLabel: note,
onPress() {
ActionSheetActionCreatorsDefault.hideActionSheet();
openEditNoteModalDefault({
2026-08-24 06:08:38 +00:00
userId,
onBack,
onSave() {
return trackUserProfileAction({ action: "SET_NOTE" });
2026-08-24 06:08:38 +00:00
}
});
2026-08-24 06:08:38 +00:00
},
activeOpacity: 0.8,
children: null
2026-07-20 16:05:17 +00:00
};
const obj3 = { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null };
const obj = userId(trackUserProfileAction[3]);
2026-07-29 08:29:29 +00:00
const intl2 = tmp2(tmp3[8]).intl;
obj3.title = intl2.string(userId(trackUserProfileAction[8]).t["mQKv+v"]);
2026-07-20 16:05:17 +00:00
const items = [tmp.title, ];
let obj4 = !tmp6Result;
2026-07-29 08:29:29 +00:00
if (!tmp6Result) {
obj4 = { marginBottom: 0 };
2026-07-20 16:05:17 +00:00
}
items[1] = obj4;
obj3.titleStyle = items;
obj3.titleIcon = <PaperPlusIcon size="xs" color="interactive-text-default" />;
2026-07-29 08:29:29 +00:00
if (tmp6Result) {
const obj5 = { variant: "text-md/normal", color: "text-default", children: note };
tmp6Result = tmp6(tmp2(tmp3[12]).Text, obj5);
2026-07-20 16:05:17 +00:00
}
obj3.children = tmp6Result;
obj2.children = jsx(onBack(trackUserProfileAction[11]), { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null });
return jsx(userId(trackUserProfileAction[7]).PressableOpacity, {
accessibilityRole: "button",
accessibilityHint: stringResult,
accessibilityLabel: note,
onPress() {
ActionSheetActionCreatorsDefault.hideActionSheet();
openEditNoteModalDefault({
userId,
onBack,
onSave() {
return trackUserProfileAction({ action: "SET_NOTE" });
}
});
},
activeOpacity: 0.8,
children: null
});
2026-07-20 16:05:17 +00:00
};