decord/source/modules/app_icons/native/AppIcon.tsx

40 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 15610
// Function ID: 15611
2026-07-20 16:05:17 +00:00
// Name: AppIcon
// Dependencies: [19, 17, 9453, 21, 4636, 576, 4571, 4488, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 15610 (AppIcon)
import nativeDefault from "native" /* 576 */;
import useThemeDefault from "useTheme" /* 4571 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = fn;
get_ActivityIndicator = fn(17);
({ Image: c3, View: closure_4 } = get_ActivityIndicator);
const getIconById = fn(9453).getIconById;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
let obj2 = { container: { overflow: "hidden", borderColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST }, image: { resizeMode: "contain", height: "100%", width: "100%" } };
let closure_7 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/app_icons/native/AppIcon.tsx");
2026-07-20 16:05:17 +00:00
export default function AppIcon(size) {
let num = size.size;
if (num === undefined) {
num = 56;
}
const tmp = closure_7();
2026-08-24 06:08:38 +00:00
const tmp2 = useThemeDefault();
const tmp3 = getIconById(size.id);
2026-07-20 16:05:17 +00:00
let num2 = 1;
if (obj.isThemeDark(tmp2)) {
num2 = 0;
}
const obj2 = { style: null, children: <React3 style={tmp.image} source={tmp3.iconSource} /> };
const items = [tmp.container, { width: num, height: num, borderWidth: num2 }, size.style];
obj2.style = items;
return <React4 style={null}><React3 style={tmp.image} source={tmp3.iconSource} /></React4>;
2026-07-20 16:05:17 +00:00
};