23 lines
719 B
TypeScript
23 lines
719 B
TypeScript
// Module ID: 9737
|
|
// Function ID: 75841
|
|
// Name: getCurrentUserProfile
|
|
// Dependencies: [1850, 5630, 2]
|
|
// Exports: default
|
|
|
|
// Module 9737 (getCurrentUserProfile)
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
import closure_1 from "_isNativeReflectConstruct";
|
|
|
|
const result = require("set").fileFinishedImporting("modules/user_profile/utils/getCurrentUserProfile.tsx");
|
|
|
|
export default function getCurrentUserProfile(arg0) {
|
|
let id = currentUser.getCurrentUser();
|
|
if (null == id) {
|
|
return null;
|
|
} else if (null != arg0) {
|
|
id = id.id;
|
|
let guildMemberProfile = authStore.getGuildMemberProfile(id, arg0);
|
|
} else {
|
|
guildMemberProfile = authStore.getUserProfile(id.id);
|
|
}
|
|
};
|