decord/alpha/source/modules/roles/native/RoleIcon.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

42 lines
1.4 KiB
TypeScript

// Module ID: 6621
// Function ID: 6622
// Name: RoleIcon
// Dependencies: [19, 17, 21, 1364, 4825, 2]
// Exports: default
// Module 6621 (RoleIcon)
import Text_Text from "Text/Text" /* 4825 */;
import noop from "module_19" /* 19 */;
require = fn;
const Image = fn(17).Image;
const jsx = fn(21).jsx;
const PlatformUtils = fn(1364);
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: "channel", textAlign: "pon", width: size, marginBottom: "isArrayBufferToString" };
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;
};