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

38 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 8182
// Function ID: 8183
2026-08-25 06:04:03 +00:00
// Name: useProfileTileGradient
// Dependencies: [32, 19, 8117, 8118, 8183, 2]
2026-08-25 06:04:03 +00:00
// Exports: default
// Module 8182 (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;
const tmp2 = guildId(8117)(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 items = [userId, guildId];
2026-08-25 06:04:03 +00:00
const effect = React.useEffect(() => {
2026-08-31 15:47:37 +00:00
if (null != userId) {
2026-08-25 06:04:03 +00:00
const obj = { guildId: null, dispatchWait: true };
obj[0] = guildId;
2026-08-31 15:47:37 +00:00
guildId(closure_1_2[3])(tmp, undefined, obj);
2026-08-25 06:04:03 +00:00
}
2026-08-31 15:47:37 +00:00
}, items);
const tmp3 = closure_3;
const tmp3Result = closure_3(themeColors, 2);
return userId(8183).useVideoTileGradientColors(tmp5, tmp6);
2026-08-25 06:04:03 +00:00
};