decord/alpha/source/modules/calls/native/useProfileTileGradient.tsx
github-actions 1224ea86fd chore: update source for alpha 348.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-26 08:31:33 +00:00

44 lines
1.6 KiB
TypeScript

// Module ID: 7697
// Function ID: 7698
// Name: useProfileTileGradient
// Dependencies: [32, 19, 7631, 7698, 7632, 7699, 2]
// Exports: default
// Module 7697 (useProfileTileGradient)
import maybeFetchUserProfileDefault from "maybeFetchUserProfile" /* 7632 */;
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);
};