Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
// Module ID: 8379
|
|
// Function ID: 8380
|
|
// Name: useProfileTileGradient
|
|
// Dependencies: [32, 19, 8315, 8380, 8316, 8381, 2]
|
|
// Exports: default
|
|
|
|
// Module 8379 (useProfileTileGradient)
|
|
import maybeFetchUserProfileDefault from "maybeFetchUserProfile" /* 8316 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/calls/native/useProfileTileGradient.tsx");
|
|
|
|
export default function useProfileTileGradient(userId) {
|
|
userId = userId.userId;
|
|
const guildId = userId.guildId;
|
|
let isVideoBackgroundProfileFetchEnabled;
|
|
let tmp2 = guildId(isVideoBackgroundProfileFetchEnabled[2])(userId, guildId);
|
|
let themeColors;
|
|
if (tmp2 != null) {
|
|
themeColors = tmp2.themeColors;
|
|
}
|
|
if (themeColors == null) {
|
|
themeColors = [];
|
|
}
|
|
[tmp5, tmp6] = themeColors;
|
|
const tmp3Result = _slicedToArray(themeColors, 2);
|
|
isVideoBackgroundProfileFetchEnabled = userId(isVideoBackgroundProfileFetchEnabled[3]).useIsVideoBackgroundProfileFetchEnabled(userId.location);
|
|
const items = [isVideoBackgroundProfileFetchEnabled, userId, guildId];
|
|
const effect = noop.useEffect(() => {
|
|
let tmp2 = null != userId;
|
|
if (tmp2) {
|
|
tmp2 = isVideoBackgroundProfileFetchEnabled;
|
|
}
|
|
if (tmp2) {
|
|
const obj = { guildId, dispatchWait: true };
|
|
maybeFetchUserProfileDefault(userId, undefined, obj);
|
|
}
|
|
}, items);
|
|
let obj = userId(isVideoBackgroundProfileFetchEnabled[3]);
|
|
return userId(isVideoBackgroundProfileFetchEnabled[5]).useVideoTileGradientColors(tmp5, tmp6);
|
|
};
|