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

81 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 12351
// Function ID: 12352
2026-07-20 16:05:17 +00:00
// Name: RemediatedUserNotice
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 4030, 676, 21, 4661, 712, 8982, 647, 4734, 1236, 9736, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 12351 (RemediatedUserNotice)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
2026-08-11 06:20:06 +00:00
import markAllUserIdListsStale from "markAllUserIdListsStale";
2026-07-23 10:11:24 +00:00
import { RelationshipTypes } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
let metroImportAll;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, Fragment: error, jsxs: metroImportAll } = jsxProd);
createCacheKey = { container: null };
createCacheKey = { padding: require("Themes").space.PX_12, gap: require("Themes").space.PX_8, flexDirection: "row", alignItems: "center" };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-08-11 06:20:06 +00:00
const result = require("markAllUserIdListsStale").fileFinishedImporting("modules/user_profile/native/UserProfileRemediatedNotice.tsx");
2026-07-20 16:05:17 +00:00
export default function RemediatedUserNotice(user) {
let isBlocked;
let isIgnored;
2026-07-23 10:11:24 +00:00
user = user.user;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = user(647);
2026-08-11 06:20:06 +00:00
const items = [markAllUserIdListsStale];
2026-07-23 10:11:24 +00:00
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ isPendingIncoming: outer1_4.getRelationshipType(user.id) === outer1_5.PENDING_INCOMING, isBlocked: outer1_4.isBlocked(user.id), isIgnored: outer1_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-15 05:55:55 +00:00
isBlocked = callback(tmp4(4734).Text, obj);
2026-07-20 16:05:17 +00:00
}
const items2 = [isBlocked, ];
if (isIgnored) {
2026-07-29 08:29:29 +00:00
const obj1 = { children: null };
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-15 05:55:55 +00:00
const items3 = [callback(tmp4(4734).Text, obj2), callback(tmp4(4734).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) {
return outer1_6(user(outer1_2[9]).Text, {
role: "button",
variant: "heading-sm/medium",
color: "text-link",
onPress() {
return outer1_1(outer1_2[11]).unignoreUser(id.id, "UserProfileRemediatedNotice");
},
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
};