decord/source/modules/calls/native/useProfileTileGradient.tsx
2026-09-02 09:53:35 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 8121
// Function ID: 8122
// Name: useProfileTileGradient
// Dependencies: [32, 19, 8122, 8123, 8127, 2]
// Exports: default
// Module 8121 (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;
const tmp2 = guildId(8122)(userId, guildId);
let themeColors;
if (tmp2 != null) {
themeColors = tmp2.themeColors;
}
if (themeColors == null) {
themeColors = [];
}
[tmp5, tmp6] = closure_3(themeColors, 2);
const items = [userId, guildId];
const effect = React.useEffect(() => {
if (null != userId) {
const obj = { guildId: null, dispatchWait: true };
obj[0] = guildId;
guildId(closure_1_2[3])(tmp, undefined, obj);
}
}, items);
const tmp3 = closure_3;
const tmp3Result = closure_3(themeColors, 2);
return userId(8127).useVideoTileGradientColors(tmp5, tmp6);
};