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

44 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 11867
// Function ID: 11868
2026-07-20 16:05:17 +00:00
// Name: UserProfileConfirmThreadRemove
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 21, 4094, 4598, 1236, 4598, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 11867 (UserProfileConfirmThreadRemove)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
const result = require("nameFromUser").fileFinishedImporting("modules/user_profile/native/UserProfileConfirmThreadRemove.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileConfirmThreadRemove(isForumPost) {
let onConfirm;
let user;
isForumPost = isForumPost.isForumPost;
({ user, onConfirm } = isForumPost);
2026-08-05 07:35:12 +00:00
let obj = importDefault(4094);
2026-07-20 16:05:17 +00:00
const name = obj.useName(user);
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
const t = require(1236) /* getSystemLocale */.t;
obj = { title: intl.string(isForumPost ? t["8sKSjm"] : t.ZPm8jN), content: null, actions: null };
const intl2 = tmp4(1236).intl;
const t2 = tmp4(1236).t;
obj[1] = intl2.formatToPlainString(isForumPost ? t2["6UGfnx"] : t2["hL+Znb"], { user: name });
obj = { children: null };
const obj1 = { variant: "destructive", text: null, onPress: null };
const intl3 = tmp4(1236).intl;
obj1[1] = intl3.string(require(1236) /* getSystemLocale */.t.N86XcP);
obj1[2] = onConfirm;
2026-08-05 07:35:12 +00:00
const items = [closure_3(require(4598) /* getAlertModalItemKey */.AlertActionButton, obj1, "remove-user-from-thread"), ];
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "secondary", text: null };
const intl4 = tmp4(1236).intl;
obj2[1] = intl4.string(require(1236) /* getSystemLocale */.t.yNbnce);
2026-08-05 07:35:12 +00:00
items[1] = closure_3(require(4598) /* getAlertModalItemKey */.AlertActionButton, obj2, "cancel-remove-user-from-thread");
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-05 07:35:12 +00:00
obj[2] = callback(require(4598) /* getAlertModalItemKey */.AlertActions, obj);
return closure_3(require(4598) /* getAlertModalItemKey */.AlertModal, obj);
2026-07-20 16:05:17 +00:00
};