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

43 lines
1.8 KiB
TypeScript

// Module ID: 12630
// Function ID: 12631
// Name: UserProfileConfirmThreadRemove
// Dependencies: [19, 21, 4404, 4910, 1114, 4910, 2]
// Exports: default
// Module 12630 (UserProfileConfirmThreadRemove)
import noopAll from "noop" /* 19 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import nameFromUserDefault from "nameFromUser" /* 4404 */;
import getAlertModalItemKey from "getAlertModalItemKey" /* 4910 */;
import jsxProd from "jsxProd" /* 21 */;
require = arg1;
noopAll;
({ jsx: c3, jsxs: c4 } = jsxProd);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileConfirmThreadRemove.tsx");
export default function UserProfileConfirmThreadRemove(isForumPost) {
isForumPost = isForumPost.isForumPost;
({ user, onConfirm } = isForumPost);
let obj = nameFromUserDefault;
const name = obj.useName(user);
const intl = getSystemLocale.intl;
const t = getSystemLocale.t;
obj = { title: intl.string(isForumPost ? t["8sKSjm"] : t.ZPm8jN), content: null, actions: null };
const intl2 = tmp4(1114).intl;
const t2 = tmp4(1114).t;
obj[1] = intl2.formatToPlainString(isForumPost ? t2["6UGfnx"] : t2["hL+Znb"], { user: name });
obj = { children: null };
obj1 = { variant: "destructive", text: null, onPress: null };
const intl3 = tmp4(1114).intl;
obj1[1] = intl3.string(getSystemLocale.t.N86XcP);
obj1[2] = onConfirm;
const items = [closure_3(getAlertModalItemKey.AlertActionButton, obj1, "remove-user-from-thread"), ];
const obj2 = { variant: "secondary", text: null };
const intl4 = tmp4(1114).intl;
obj2[1] = intl4.string(getSystemLocale.t.yNbnce);
items[1] = closure_3(getAlertModalItemKey.AlertActionButton, obj2, "cancel-remove-user-from-thread");
obj[0] = items;
obj[2] = callback(getAlertModalItemKey.AlertActions, obj);
return closure_3(getAlertModalItemKey.AlertModal, obj);
};