decord/source/modules/app_icons/native/AppIcon.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

39 lines
1.4 KiB
TypeScript

// Module ID: 15638
// Function ID: 15639
// Name: AppIcon
// Dependencies: [19, 17, 9466, 21, 4638, 576, 4572, 4489, 2]
// Exports: default
// Module 15638 (AppIcon)
import nativeDefault from "native" /* 576 */;
import useThemeDefault from "useTheme" /* 4572 */;
import noop from "module_19" /* 19 */;
const require = fn;
get_ActivityIndicator = fn(17);
({ Image: c3, View: closure_4 } = get_ActivityIndicator);
const getIconById = fn(9466).getIconById;
const jsx = fn(21).jsx;
const createStyles = fn(4638);
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");
export default function AppIcon(size) {
let num = size.size;
if (num === undefined) {
num = 56;
}
const tmp = closure_7();
const tmp2 = useThemeDefault();
const tmp3 = getIconById(size.id);
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>;
};