53 lines
1.8 KiB
TypeScript
53 lines
1.8 KiB
TypeScript
// Module ID: 15925
|
|
// Function ID: 15926
|
|
// Name: VibegrationsMessageAuthor
|
|
// Dependencies: [19, 17, 1922, 21, 4668, 712, 589, 4223, 1297, 4739, 2]
|
|
// Exports: default
|
|
|
|
// Module 15925 (VibegrationsMessageAuthor)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import closure_3 from "mergeGuildAvatar" /* 1922 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4668 */;
|
|
|
|
const require = arg1;
|
|
noopAll;
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
|
createCacheKey = { author: null };
|
|
createCacheKey = { flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_8 };
|
|
createCacheKey[0] = createCacheKey;
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/vibegrations/native/VibegrationsMessageAuthor.tsx");
|
|
|
|
export default function VibegrationsMessageAuthor(userId) {
|
|
userId = userId.userId;
|
|
let obj = userId(589);
|
|
const items = [closure_3];
|
|
const items1 = [userId];
|
|
const stateFromStores = obj.useStateFromStores(items, () => {
|
|
if (null != userId) {
|
|
let user = closure_1_3.getUser(tmp);
|
|
} else {
|
|
user = closure_1_3.getCurrentUser();
|
|
}
|
|
return user;
|
|
}, items1);
|
|
userId(4223);
|
|
let tmp7 = null;
|
|
if (null != stateFromStores) {
|
|
obj = { style: null, children: null };
|
|
obj[0] = tmp.author;
|
|
obj = { size: null, user: null, guildId: "Array" };
|
|
obj[0] = tmp2(1297).AvatarSizes.SIZE_16;
|
|
obj[1] = stateFromStores;
|
|
const items2 = [callback(tmp2(1297).Avatar, obj), ];
|
|
obj1 = { variant: "text-xs/semibold", color: "text-muted", children: null };
|
|
obj1[2] = tmp6;
|
|
items2[1] = callback(tmp2(4739).Text, obj1);
|
|
obj[1] = items2;
|
|
tmp7 = callback2(View, obj);
|
|
}
|
|
return tmp7;
|
|
};
|