2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 8317
|
|
|
|
|
// Function ID: 65490
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: openUserProfileAvatarMediaViewer
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [4122, 653, 8318, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 8317 (openUserProfileAvatarMediaViewer)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import { AVATAR_MAX_SIZE } from "ME";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("_openMediaModal").fileFinishedImporting("modules/user_profile/native/openUserProfileAvatarMediaViewer.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function openUserProfileAvatarMediaViewer(user) {
|
|
|
|
|
let guildId;
|
|
|
|
|
let originViewOrOriginLayout;
|
|
|
|
|
user = user.user;
|
|
|
|
|
let animate = !useReducedMotion.useReducedMotion;
|
2026-07-24 07:16:23 +00:00
|
|
|
({ guildId, originViewOrOriginLayout } = user);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (animate) {
|
|
|
|
|
animate = user.animate;
|
|
|
|
|
}
|
|
|
|
|
const avatarURL = user.getAvatarURL(guildId, tmp, animate);
|
2026-07-24 07:16:23 +00:00
|
|
|
let obj = require(8318) /* _openMediaModal */;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { initialSources: null, originViewOrOriginLayout: null, analyticsSource: "user_profile_avatar", openAs: "action-sheet", shareable: false, disableDownload: true, disableMediaOverlayButton: true, disableMediaOverlayFooter: true };
|
2026-07-24 07:16:23 +00:00
|
|
|
const items = [{ uri: avatarURL, mediaIndex: 0, height: AVATAR_MAX_SIZE, width: AVATAR_MAX_SIZE, accessoryType: "embed" }];
|
2026-07-21 22:01:30 +00:00
|
|
|
obj.initialSources = items;
|
|
|
|
|
obj.originViewOrOriginLayout = originViewOrOriginLayout;
|
|
|
|
|
obj.openMediaModal(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|