Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
42 lines
1.7 KiB
TypeScript
42 lines
1.7 KiB
TypeScript
// Module ID: 12721
|
|
// Function ID: 12722
|
|
// Name: UserProfileConfirmThreadRemove
|
|
// Dependencies: [19, 21, 4451, 4957, 1114, 4957, 2]
|
|
// Exports: default
|
|
|
|
// Module 12721 (UserProfileConfirmThreadRemove)
|
|
import util from "util" /* 1114 */;
|
|
import UserUtilsDefault from "UserUtils" /* 4451 */;
|
|
import AlertModal from "AlertModal" /* 4957 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsxProd = fn(21);
|
|
({ jsx: c3, jsxs: closure_4 } = jsxProd);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileConfirmThreadRemove.tsx");
|
|
|
|
export default function UserProfileConfirmThreadRemove(isForumPost) {
|
|
isForumPost = isForumPost.isForumPost;
|
|
({ user, onConfirm } = isForumPost);
|
|
const name = UserUtilsDefault.useName(user);
|
|
const intl = util.intl;
|
|
const t = util.t;
|
|
const obj2 = { title: intl.string(isForumPost ? t["8sKSjm"] : t.ZPm8jN), content: null, actions: null };
|
|
const intl2 = tmp4(1114).intl;
|
|
const t2 = tmp4(1114).t;
|
|
obj2.content = intl2.formatToPlainString(isForumPost ? t2["6UGfnx"] : t2["hL+Znb"], { user: name });
|
|
const obj3 = { children: null };
|
|
const obj4 = { variant: "destructive", text: null, onPress: null };
|
|
const intl3 = tmp4(1114).intl;
|
|
obj4.text = intl3.string(util.t.N86XcP);
|
|
obj4.onPress = onConfirm;
|
|
const items = [React3(AlertModal.AlertActionButton, obj4, "remove-user-from-thread"), ];
|
|
const obj5 = { variant: "secondary", text: null };
|
|
const intl4 = tmp4(1114).intl;
|
|
obj5.text = intl4.string(util.t.yNbnce);
|
|
items[1] = React3(AlertModal.AlertActionButton, obj5, "cancel-remove-user-from-thread");
|
|
obj3.children = items;
|
|
obj2.actions = React4(AlertModal.AlertActions, obj3);
|
|
return React3(AlertModal.AlertModal, obj2);
|
|
};
|