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

44 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14897
// Function ID: 14898
2026-07-20 16:05:17 +00:00
// Name: AppIcon
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 7985, 21, 4668, 712, 4314, 1363, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14897 (AppIcon)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
import useThemeDefault from "useTheme" /* 4314 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { getIconById } from "items" /* 7985 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ Image: c3, View: c4 } = get_ActivityIndicator);
createCacheKey = { container: null, image: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { overflow: "hidden", borderColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { resizeMode: "contain", height: "100%", width: "100%" };
2026-08-24 06:08:38 +00:00
let closure_7 = createCacheKey.createStyles(createCacheKey);
const result = require("set").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;
}
2026-08-24 06:08:38 +00:00
const tmp = callback();
const tmp2 = useThemeDefault();
let obj = AccessibilityAnnouncer;
2026-07-20 16:05:17 +00:00
let num2 = 1;
if (obj.isThemeDark(tmp2)) {
num2 = 0;
}
2026-07-29 08:29:29 +00:00
obj = { style: items, children: <closure_3 {...obj} /> };
items = [tmp.container, { width: num, height: num, borderWidth: num2 }, size.style];
obj = { style: tmp.image, source: getIconById(size.id).iconSource };
return <closure_4 style={tmp.image} source={getIconById(arg0.id).iconSource} />;
2026-07-20 16:05:17 +00:00
};