decord/beta/source/modules/roles/native/RoleIcon.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

42 lines
1.4 KiB
TypeScript

// Module ID: 6626
// Function ID: 6627
// Name: RoleIcon
// Dependencies: [19, 17, 21, 1364, 4832, 2]
// Exports: default
// Module 6626 (RoleIcon)
import Text_Text from "Text/Text" /* 4832 */;
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: "scrollSize", 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;
};