decord/source/modules/roles/native/RoleIcon.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

42 lines
1.4 KiB
TypeScript

// Module ID: 7278
// Function ID: 7279
// Name: RoleIcon
// Dependencies: [19, 17, 21, 1115, 4602, 2]
// Exports: default
// Module 7278 (RoleIcon)
import Text_Text from "Text/Text" /* 4602 */;
import noop from "module_19" /* 19 */;
require = fn;
const Image = fn(17).Image;
const jsx = fn(21).jsx;
const PlatformUtils = fn(1115);
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 };
const obj = { fontFamily: "System", fontSize: size * num, lineHeight: "call", textAlign: "Array", width: size, marginBottom: "withSpring" };
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;
};