decord/source/modules/calls/native/useProfileTileGradient.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

44 lines
1.6 KiB
TypeScript

// Module ID: 8251
// Function ID: 8252
// Name: useProfileTileGradient
// Dependencies: [32, 19, 8186, 8252, 8187, 8253, 2]
// Exports: default
// Module 8251 (useProfileTileGradient)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
const require = arg1;
const result = require("set").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] = closure_3(themeColors, 2);
const tmp3 = closure_3;
const tmp3Result = closure_3(themeColors, 2);
isVideoBackgroundProfileFetchEnabled = userId(isVideoBackgroundProfileFetchEnabled[3]).useIsVideoBackgroundProfileFetchEnabled(userId.location);
const items = [isVideoBackgroundProfileFetchEnabled, userId, guildId];
const effect = React.useEffect(() => {
let tmp2 = null != userId;
if (tmp2) {
tmp2 = isVideoBackgroundProfileFetchEnabled;
}
if (tmp2) {
const obj = { guildId: null, dispatchWait: true };
obj[0] = guildId;
guildId(isVideoBackgroundProfileFetchEnabled[4])(userId, undefined, obj);
}
}, items);
let obj = userId(isVideoBackgroundProfileFetchEnabled[3]);
return userId(isVideoBackgroundProfileFetchEnabled[5]).useVideoTileGradientColors(tmp5, tmp6);
};