43 lines
1.7 KiB
TypeScript
43 lines
1.7 KiB
TypeScript
// Module ID: 3831
|
|
// Function ID: 31981
|
|
// Name: BaseIconImage
|
|
// Dependencies: []
|
|
// Exports: BaseIconImage
|
|
|
|
// Module 3831 (BaseIconImage)
|
|
importAll(dependencyMap[0]);
|
|
const Image = arg1(dependencyMap[1]).Image;
|
|
const jsx = arg1(dependencyMap[2]).jsx;
|
|
let closure_4 = { xxs: { aze: "version=$(node -p \"require('./package.json').version\") && sed -i '' \"s/#define NITRO_VERSION \\\".*\\\"/#define NITRO_VERSION \\\"$version\\\"/\" ./cpp/utils/NitroDefines.hpp", azj: "bun run write-native-version" }, xs: { aze: "<string:16777479>", azj: "<string:36295491>" }, sm: { aze: null, azj: null }, md: { aze: false, azj: false }, lg: { aze: "boolean", azj: "string" }, custom: { width: undefined, height: undefined }, refresh_sm: { aze: null, azj: null } };
|
|
const result = arg1(dependencyMap[4]).fileFinishedImporting("design/components/Icon/native/BaseIconImage.tsx");
|
|
|
|
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);
|
|
let obj = arg1(dependencyMap[3]);
|
|
const token = obj.useToken(color);
|
|
if (null != token) {
|
|
obj = { tintColor: token };
|
|
let tmp3 = obj;
|
|
} else {
|
|
let tmp2 = null != color;
|
|
if (tmp2) {
|
|
tmp2 = "string" === typeof color;
|
|
}
|
|
if (tmp2) {
|
|
obj = { tintColor: color };
|
|
tmp3 = obj;
|
|
}
|
|
}
|
|
style = [closure_4[str], tmp3, ];
|
|
style[2] = style;
|
|
return <Image fadeDuration={0} source={arg0.source} resizeMode={resizeMode} style={style} accessible={accessible} accessibilityLabel={accessibilityLabel} />;
|
|
};
|