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

78 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12721
// Function ID: 12722
2026-07-20 16:05:17 +00:00
// Name: RemediatedUserNotice
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 4034, 676, 21, 4380, 712, 8982, 647, 4376, 1236, 9391, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 12721 (RemediatedUserNotice)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import closure_4 from "markAllUserIdListsStale" /* 4034 */;
2026-08-24 06:08:38 +00:00
import { RelationshipTypes } from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
({ jsx: closure_6, Fragment: error, jsxs: closure_8 } = jsxProd);
2026-07-29 08:29:29 +00:00
createCacheKey = { container: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { padding: ThemesDefault.space.PX_12, gap: ThemesDefault.space.PX_8, flexDirection: "row", alignItems: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_9 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileRemediatedNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function RemediatedUserNotice(user) {
2026-07-23 10:11:24 +00:00
user = user.user;
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-07-29 08:29:29 +00:00
let obj = user(647);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ isPendingIncoming: closure_1_4.getRelationshipType(user.id) === closure_1_5.PENDING_INCOMING, isBlocked: closure_1_4.isBlocked(user.id), isIgnored: closure_1_4.isIgnored(user.id) }));
2026-07-20 16:05:17 +00:00
({ isBlocked, isIgnored } = stateFromStoresObject);
if (isBlocked) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
const items1 = [tmp.container, tmp3.card, user.style];
obj[0] = items1;
2026-07-20 16:05:17 +00:00
if (isBlocked) {
2026-07-29 08:29:29 +00:00
obj = { variant: "text-sm/semibold", color: "text-default", lineClamp: 1, children: null };
const intl = tmp4(1236).intl;
obj[3] = intl.string(tmp4(1236).t["oC/fU6"]);
2026-08-25 06:04:03 +00:00
isBlocked = callback(tmp4(4376).Text, obj);
2026-07-20 16:05:17 +00:00
}
const items2 = [isBlocked, ];
if (isIgnored) {
2026-08-24 06:08:38 +00:00
obj1 = { children: null };
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "text-sm/semibold", color: "text-default", lineClamp: 1, children: null };
const intl2 = tmp4(1236).intl;
obj2[3] = intl2.string(tmp4(1236).t.HXz5An);
2026-08-25 06:04:03 +00:00
const items3 = [callback(tmp4(4376).Text, obj2), callback(tmp4(4376).Text, { variant: "text-sm/semibold", color: "text-default", accessibilityElementsHidden: true, importantForAccessibility: "no", children: "\u2022" }), ];
2026-07-29 08:29:29 +00:00
const intl3 = tmp4(1236).intl;
const obj3 = { unignoreHook: null };
obj3[0] = function unignoreHook(children) {
2026-08-24 06:08:38 +00:00
return closure_1_6(user(closure_1_2[9]).Text, {
2026-07-29 08:29:29 +00:00
role: "button",
variant: "heading-sm/medium",
color: "text-link",
onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_1(closure_1_2[11]).unignoreUser(id.id, "UserProfileRemediatedNotice");
2026-07-29 08:29:29 +00:00
},
children
});
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
items3[2] = intl3.format(tmp4(1236).t.PrtAqy, obj3);
obj1[0] = items3;
isIgnored = tmp8(closure_7, obj1);
2026-07-20 16:05:17 +00:00
}
items2[1] = isIgnored;
2026-07-29 08:29:29 +00:00
obj[1] = items2;
let tmp8Result = tmp8(View, obj);
const tmp9 = View;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp8Result = null;
2026-07-20 16:05:17 +00:00
if (isIgnored) {
2026-07-29 08:29:29 +00:00
tmp8Result = null;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
return tmp8Result;
2026-07-20 16:05:17 +00:00
};