decord/source/modules/roles/native/RoleIcon.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

41 lines
1.3 KiB
TypeScript

// Module ID: 7308
// Function ID: 7309
// Name: RoleIcon
// Dependencies: [19, 17, 21, 1150, 4632, 2]
// Exports: default
// Module 7308 (RoleIcon)
import Text_Text from "Text/Text" /* 4632 */;
import noop from "module_19" /* 19 */;
require = fn;
const Image = fn(17).Image;
const jsx = fn(21).jsx;
const PlatformUtils = fn(1150);
const size = fn(2);
const result = size.fileFinishedImporting("modules/roles/native/RoleIcon.tsx");
export default function RoleIcon(arg0) {
({ src, unicodeEmoji, size } = arg0);
if (size === undefined) {
size = 20;
}
const size1 = { height: size, width: size };
if (null != src) {
const obj2 = { resizeMode: "contain", source: null, style: null };
const obj3 = { uri: src };
obj2.source = obj3;
obj2.style = size1;
let tmp = <Image resizeMode="contain" source={null} style={null} />;
} else {
tmp = null;
if (null != unicodeEmoji) {
const obj4 = { allowFontScaling: false, color: "none", style: null, variant: "text-lg/normal", children: null };
const items = [size1, obj];
obj4.style = items;
obj4.children = unicodeEmoji.surrogates;
tmp = jsx(Text_Text.Text, { allowFontScaling: false, color: "none", style: null, variant: "text-lg/normal", children: null });
}
}
return tmp;
};