25 lines
1 KiB
TypeScript
25 lines
1 KiB
TypeScript
// Module ID: 8265
|
|
// Function ID: 65200
|
|
// Name: openUserProfileAvatarMediaViewer
|
|
// Dependencies: []
|
|
// Exports: default
|
|
|
|
// Module 8265 (openUserProfileAvatarMediaViewer)
|
|
let closure_2 = importDefault(dependencyMap[0]);
|
|
const AVATAR_MAX_SIZE = arg1(dependencyMap[1]).AVATAR_MAX_SIZE;
|
|
const result = arg1(dependencyMap[3]).fileFinishedImporting("modules/user_profile/native/openUserProfileAvatarMediaViewer.tsx");
|
|
|
|
export default function openUserProfileAvatarMediaViewer(user) {
|
|
let description;
|
|
let guildId;
|
|
let originViewOrOriginLayout;
|
|
user = user.user;
|
|
let animate = !useReducedMotion.useReducedMotion;
|
|
({ guildId, originViewOrOriginLayout, description } = user);
|
|
if (animate) {
|
|
animate = user.animate;
|
|
}
|
|
const avatarURL = user.getAvatarURL(guildId, tmp, animate);
|
|
const items = [{ uri: avatarURL, mediaIndex: 0, height: AVATAR_MAX_SIZE, width: AVATAR_MAX_SIZE, description, accessoryType: "embed" }];
|
|
arg1(dependencyMap[2]).openMediaModal({ initialSources: items, originViewOrOriginLayout });
|
|
};
|