50 lines
3.1 KiB
TypeScript
50 lines
3.1 KiB
TypeScript
/* Metro module 8808; source: modules/user_profile/native/UserProfileConfirmThreadRemove.tsx; dependencies: [31, 33, 3995, 4500, 1244, 4500, 2] */
|
|
import UserUtils from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
|
|
|
|
function _fun68857(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8993:6, offset: 0x01c5f621, size: 147 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/UserProfileConfirmThreadRemove.tsx');
|
|
exports.default = UserProfileConfirmThreadRemove;
|
|
function UserProfileConfirmThreadRemove({isForumPost, user, onConfirm}) { // fn#68858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8993:237, offset: 0x01c5f6b4, size: 495 bytes, params: 2, frame: 28
|
|
const value2 = (UserUtils).useName(user);
|
|
const AlertModal = (AlertModalNativeModule).AlertModal;
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object.title = Reflect.apply(string, intl, [isForumPost ? t['8sKSjm'] : t.ZPm8jN]);
|
|
object.content = intl.formatToPlainString(isForumPost ? t['6UGfnx'] : t['hL+Znb'], {user: value2});
|
|
const AlertActions = (AlertModalNativeModule).AlertActions;
|
|
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
|
|
string = intl.string;
|
|
const N86XcP = (require(1244) /* metro dependency 1244: indexNative */).t.N86XcP;
|
|
object.actions = (
|
|
<AlertActions>
|
|
<AlertActionButton
|
|
variant="destructive"
|
|
text={Reflect.apply(string, intl, [N86XcP])}
|
|
onPress={onConfirm}
|
|
key="remove-user-from-thread"
|
|
/>
|
|
<AlertActionButton
|
|
variant="secondary"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yNbnce)}
|
|
key="cancel-remove-user-from-thread"
|
|
/>
|
|
</AlertActions>
|
|
);
|
|
return <AlertModal {...object} />;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68857, 8808, [31, 33, 3995, 4500, 1244, 4500,
|
|
2]) /* metro module 8808, dependencies: [31, 33, 3995, 4500, 1244, 4500, 2] */;
|