decord/source/modules/calls/native/useProfileTileGradient.tsx

45 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 8251
// Function ID: 8252
2026-08-25 06:04:03 +00:00
// Name: useProfileTileGradient
// Dependencies: [32, 19, 8186, 8252, 8187, 8253, 2]
2026-08-25 06:04:03 +00:00
// Exports: default
// Module 8251 (useProfileTileGradient)
2026-08-25 06:04:03 +00:00
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);
2026-08-31 15:47:37 +00:00
let themeColors;
if (tmp2 != null) {
themeColors = tmp2.themeColors;
2026-08-25 06:04:03 +00:00
}
2026-08-31 15:47:37 +00:00
if (themeColors == null) {
themeColors = [];
2026-08-25 06:04:03 +00:00
}
2026-08-31 15:47:37 +00:00
[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];
2026-08-25 06:04:03 +00:00
const effect = React.useEffect(() => {
let tmp2 = null != userId;
if (tmp2) {
tmp2 = isVideoBackgroundProfileFetchEnabled;
}
if (tmp2) {
2026-08-25 06:04:03 +00:00
const obj = { guildId: null, dispatchWait: true };
obj[0] = guildId;
guildId(isVideoBackgroundProfileFetchEnabled[4])(userId, undefined, obj);
2026-08-25 06:04:03 +00:00
}
2026-08-31 15:47:37 +00:00
}, items);
let obj = userId(isVideoBackgroundProfileFetchEnabled[3]);
return userId(isVideoBackgroundProfileFetchEnabled[5]).useVideoTileGradientColors(tmp5, tmp6);
2026-08-25 06:04:03 +00:00
};