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

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 14485
// Function ID: 14486
2026-07-20 16:05:17 +00:00
// Name: SettingsItemAppIcon
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 6583, 21, 4189, 712, 6582, 6584, 9762, 14486, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 14485 (SettingsItemAppIcon)
import "noop";
import { getIconById } from "items";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { icon: null };
createCacheKey = { borderRadius: require("Themes").radii.round };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/app_icons/native/SettingsItemAppIcon.tsx");
2026-07-20 16:05:17 +00:00
export default function SettingsItemAppIcon(color) {
let INTERACTIVE_ICON_DEFAULT = color.color;
if (INTERACTIVE_ICON_DEFAULT === undefined) {
2026-07-29 08:29:29 +00:00
INTERACTIVE_ICON_DEFAULT = importDefault(712).colors.INTERACTIVE_ICON_DEFAULT;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = require(6582) /* fetchCurrentAppIcon */;
2026-07-20 16:05:17 +00:00
const currentAppIcon = obj.useCurrentAppIcon();
2026-07-29 08:29:29 +00:00
const tmp3 = createCacheKey();
const tmp4 = require;
if (currentAppIcon !== require(6584) /* FreemiumAppIconIds */.FreemiumAppIconIds.DEFAULT) {
if (null != tmp7) {
obj = { style: null, id: null, size: 32 };
obj[0] = tmp3.icon;
obj[1] = currentAppIcon;
let tmp11 = jsx(importDefault(14486), { style: null, id: null, size: 32 });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp11;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp11 = jsx(tmp4(9762).ClydeIcon, { color: INTERACTIVE_ICON_DEFAULT });
2026-07-20 16:05:17 +00:00
};