decord/source/design/components/Icon/native/BaseIconImage.tsx

45 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 4096
// Function ID: 4097
2026-07-20 16:05:17 +00:00
// Name: BaseIconImage
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 21, 4097, 2]
2026-07-20 16:05:17 +00:00
// Exports: BaseIconImage
2026-08-15 05:55:55 +00:00
// Module 4096 (BaseIconImage)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { Image } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-14 17:33:39 +00:00
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: "r", height: "accessibilityRole" }, refresh_sm: { width: 18, height: 18 } };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/components/Icon/native/BaseIconImage.tsx");
2026-07-20 16:05:17 +00:00
export const BaseIconImage = function BaseIconImage(source) {
let accessibilityLabel;
let accessible;
let resizeMode;
let style;
let str = source.size;
if (str === undefined) {
str = "md";
}
const color = source.color;
({ resizeMode, style, accessible, accessibilityLabel } = source);
2026-08-15 05:55:55 +00:00
let obj = require(4097) /* map */;
2026-07-20 16:05:17 +00:00
const token = obj.useToken(color);
if (null != token) {
2026-07-29 08:29:29 +00:00
obj = { tintColor: null };
obj[0] = token;
2026-07-20 16:05:17 +00:00
let tmp3 = obj;
} else {
if (tmp2) {
2026-07-29 08:29:29 +00:00
obj = { tintColor: null };
obj[0] = color;
2026-07-20 16:05:17 +00:00
tmp3 = obj;
}
2026-08-04 21:03:28 +00:00
tmp2 = null != color && typeof color === "string";
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
style = [table[str], tmp3, ];
2026-07-20 16:05:17 +00:00
style[2] = style;
return <Image fadeDuration={0} source={arg0.source} resizeMode={resizeMode} style={style} accessible={accessible} accessibilityLabel={accessibilityLabel} />;
};