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

82 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11977
// Function ID: 92573
2026-07-20 16:05:17 +00:00
// Name: UserProfileNote
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 33, 4131, 8045, 11978, 9213, 11980, 4661, 1212, 4099, 11982, 5509, 4127, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 11977 (UserProfileNote)
2026-07-23 10:11:24 +00:00
import "result";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
let closure_4 = _createForOfIteratorHelperLoose.createStyles({ title: { justifyContent: "space-between" } });
const result = require("_createForOfIteratorHelperLoose").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;
let obj = userId(trackUserProfileAction[3]);
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
const note = onBack(trackUserProfileAction[4])(userId).note;
2026-07-20 16:05:17 +00:00
let tmp2 = null != note;
if (tmp2) {
tmp2 = "" !== note;
}
if (tmp2) {
let PaperPlusIcon = tmp3(tmp4[5]).PaperIcon;
} else {
PaperPlusIcon = tmp3(tmp4[6]).PaperPlusIcon;
}
obj = { accessibilityRole: "button" };
2026-07-23 10:11:24 +00:00
const intl = userId(trackUserProfileAction[8]).intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-23 10:11:24 +00:00
const t = userId(trackUserProfileAction[8]).t;
2026-07-20 16:05:17 +00:00
if (tmp2) {
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
}
obj.accessibilityHint = stringResult;
let tmp7;
if (null != note) {
tmp7 = note;
}
obj.accessibilityLabel = tmp7;
obj.onPress = function onPress() {
let obj = onBack(trackUserProfileAction[9]);
obj.hideActionSheet();
obj = {
userId,
onBack,
onSave() {
2026-07-23 10:11:24 +00:00
return outer1_2({ action: "SET_NOTE" });
2026-07-20 16:05:17 +00:00
}
};
onBack(trackUserProfileAction[10])(obj);
};
obj.activeOpacity = 0.8;
obj = { style: style.style };
const tmp = callback();
const tmp5 = jsx;
const tmp8 = jsx;
2026-07-23 10:11:24 +00:00
const intl2 = userId(trackUserProfileAction[8]).intl;
obj.title = intl2.string(userId(trackUserProfileAction[8]).t["mQKv+v"]);
2026-07-20 16:05:17 +00:00
const items = [tmp.title, ];
let tmp10 = !tmp2;
if (!tmp2) {
const obj1 = { marginBottom: 0 };
tmp10 = obj1;
}
items[1] = tmp10;
obj.titleStyle = items;
2026-07-23 10:11:24 +00:00
obj.titleIcon = <PaperPlusIcon size="xs" color="interactive-text-default" />;
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "text-md/normal", color: "text-default", children: note };
tmp2 = jsx(userId(trackUserProfileAction[12]).Text, { variant: "text-md/normal", color: "text-default", children: note });
2026-07-20 16:05:17 +00:00
}
obj.children = tmp2;
2026-07-23 10:11:24 +00:00
obj.children = tmp8(onBack(trackUserProfileAction[11]), obj);
return tmp5(userId(trackUserProfileAction[7]).PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
};