decord/source/modules/user_profile/native/UserProfileNote.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

82 lines
2.7 KiB
TypeScript

// Module ID: 13055
// Function ID: 13056
// Name: UserProfileNote
// Dependencies: [19, 21, 4560, 8190, 13056, 7910, 13058, 5123, 1114, 4527, 13060, 7207, 4556, 2]
// Exports: default
// Module 13055 (UserProfileNote)
import noopAll from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
noopAll;
let closure_4 = createCacheKey.createStyles({ title: { justifyContent: "space-between" } });
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileNote.tsx");
export default function UserProfileNote(style) {
const userId = style.userId;
const onBack = style.onBack;
let trackUserProfileAction;
let obj = userId(trackUserProfileAction[3]);
trackUserProfileAction = obj.useUserProfileAnalyticsContext().trackUserProfileAction;
const note = onBack(trackUserProfileAction[4])(userId).note;
let tmp6Result = null != note;
if (tmp6Result) {
tmp6Result = "" !== note;
}
if (tmp6Result) {
let PaperPlusIcon = tmp2(tmp3[5]).PaperIcon;
} else {
PaperPlusIcon = tmp2(tmp3[6]).PaperPlusIcon;
}
const intl = tmp2(tmp3[8]).intl;
const string = intl.string;
const t = tmp2(tmp3[8]).t;
if (tmp6Result) {
let stringResult = string(t["gs+qcM"]);
} else {
stringResult = string(t["1ZZtts"]);
}
obj = {
accessibilityRole: "button",
accessibilityHint: stringResult,
accessibilityLabel: note,
onPress() {
let obj = onBack(trackUserProfileAction[9]);
obj.hideActionSheet();
obj = {
userId,
onBack,
onSave() {
return callback({ action: "SET_NOTE" });
}
};
onBack(trackUserProfileAction[10])(obj);
},
activeOpacity: 0.8,
children: null
};
obj = { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null };
const tmp = callback();
const tmp4 = onBack;
const tmp8 = note;
const intl2 = tmp2(tmp3[8]).intl;
obj[1] = intl2.string(userId(trackUserProfileAction[8]).t["mQKv+v"]);
const items = [tmp.title, ];
obj1 = !tmp6Result;
if (!tmp6Result) {
obj1 = { marginBottom: 0 };
}
items[1] = obj1;
obj[2] = items;
obj[3] = <PaperPlusIcon size="xs" color="interactive-text-default" />;
if (tmp6Result) {
const obj2 = { variant: "text-md/normal", color: "text-default", children: null };
obj2[2] = note;
tmp6Result = tmp6(tmp2(tmp3[12]).Text, obj2);
}
obj[4] = tmp6Result;
obj[5] = jsx(onBack(trackUserProfileAction[11]), { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null });
return jsx(userId(trackUserProfileAction[7]).PressableOpacity, { style: style.style, title: null, titleStyle: null, titleIcon: null, children: null });
};