decord/source/design/components/Icon/native/BaseIconImage.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

40 lines
1.5 KiB
TypeScript

// Module ID: 4274
// Function ID: 4275
// Name: BaseIconImage
// Dependencies: [19, 17, 21, 4275, 2]
// Exports: BaseIconImage
// Module 4274 (BaseIconImage)
import useToken from "useToken" /* 4275 */;
import noop from "module_19" /* 19 */;
require = fn;
const Image = fn(17).Image;
const jsx = fn(21).jsx;
let closure_4 = { xxs: { width: 12, height: 12 }, xs: { width: 16, height: 16 }, sm: { width: 18, height: 18 }, md: { width: 24, height: 24 }, lg: { width: 32, height: 32 }, custom: { width: "Array", height: "PX_16" }, refresh_sm: { width: 18, height: 18 } };
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Icon/native/BaseIconImage.tsx");
export const BaseIconImage = function BaseIconImage(size) {
let str = size.size;
if (str === undefined) {
str = "md";
}
const color = size.color;
({ resizeMode, style, accessible, accessibilityLabel } = size);
const token = useToken.useToken(color);
if (null != token) {
const obj2 = { tintColor: token };
let tmp3 = obj2;
} else {
if (tmp2) {
const obj3 = { tintColor: color };
tmp3 = obj3;
}
tmp2 = null != color && typeof color === "string";
}
const obj4 = { fadeDuration: 0, source: size.source, resizeMode, style: null, accessible, accessibilityLabel };
const items = [closure_4[str], tmp3, style];
obj4.style = items;
return <Image fadeDuration={0} source={arg0.source} resizeMode={resizeMode} style={null} accessible={accessible} accessibilityLabel={accessibilityLabel} />;
};