decord/source/modules/calls/native/useProfileTileGradient.tsx
2026-08-31 15:47:37 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 8081
// Function ID: 8082
// Name: useProfileTileGradient
// Dependencies: [32, 19, 8082, 8083, 8087, 2]
// Exports: default
// Module 8081 (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(8082)(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(8087).useVideoTileGradientColors(tmp5, tmp6);
};