decord/source/modules/vibegrations/native/VibegrationsMessageAuthor.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

53 lines
2 KiB
TypeScript

// Module ID: 16604
// Function ID: 16605
// Name: VibegrationsMessageAuthor
// Dependencies: [19, 17, 1371, 21, 4560, 576, 16605, 504, 4404, 1178, 4556, 2]
// Exports: default
// Module 16604 (VibegrationsMessageAuthor)
import ThemesDefault from "Themes" /* 576 */;
import closure_2 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "mergeGuildAvatar" /* 1371 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
const require = arg1;
({ jsx: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { author: null };
createCacheKey = { flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_8 };
createCacheKey[0] = createCacheKey;
let closure_7 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/vibegrations/native/VibegrationsMessageAuthor.tsx");
export default function VibegrationsMessageAuthor(userId) {
userId = userId.userId;
const items = [userId];
const effect = React.useEffect(() => userId(closure_1_1[6]).requestMessageAuthor(userId), items);
let obj = userId(504);
const items1 = [closure_4];
const items2 = [userId];
const stateFromStores = obj.useStateFromStores(items1, () => {
let user = null;
if (null != userId) {
user = closure_1_4.getUser(tmp);
}
return userId(closure_1_1[6]).resolveMessageAuthor(userId, user, closure_1_4.getCurrentUser());
}, items2);
userId(4404);
let tmp8 = null;
if (null != stateFromStores) {
obj = { style: null, children: null };
obj[0] = tmp.author;
obj = { size: null, user: null, guildId: "Array" };
obj[0] = tmp3(1178).AvatarSizes.SIZE_16;
obj[1] = stateFromStores;
const items3 = [callback(tmp3(1178).Avatar, obj), ];
obj1 = { variant: "text-xs/semibold", color: "text-muted", children: null };
obj1[2] = tmp7;
items3[1] = callback(tmp3(4556).Text, obj1);
obj[1] = items3;
tmp8 = callback2(View, obj);
}
return tmp8;
};