37 lines
1.6 KiB
TypeScript
37 lines
1.6 KiB
TypeScript
// Module ID: 14357
|
|
// Function ID: 109796
|
|
// Name: SettingsItemAppIcon
|
|
// Dependencies: [31, 7961, 33, 4130, 689, 12380, 7962, 9742, 14358, 2]
|
|
// Exports: default
|
|
|
|
// Module 14357 (SettingsItemAppIcon)
|
|
import "result";
|
|
import { getIconById } from "getDefaultIcon";
|
|
import { jsx } from "jsxProd";
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
const require = arg1;
|
|
_createForOfIteratorHelperLoose = {};
|
|
_createForOfIteratorHelperLoose = { borderRadius: require("_createForOfIteratorHelperLoose").radii.round };
|
|
_createForOfIteratorHelperLoose.icon = _createForOfIteratorHelperLoose;
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
const result = require("jsxProd").fileFinishedImporting("modules/app_icons/native/SettingsItemAppIcon.tsx");
|
|
|
|
export default function SettingsItemAppIcon(color) {
|
|
let INTERACTIVE_ICON_DEFAULT = color.color;
|
|
if (INTERACTIVE_ICON_DEFAULT === undefined) {
|
|
INTERACTIVE_ICON_DEFAULT = importDefault(689).colors.INTERACTIVE_ICON_DEFAULT;
|
|
}
|
|
let obj = require(12380) /* fetchCurrentAppIcon */;
|
|
const currentAppIcon = obj.useCurrentAppIcon();
|
|
const tmp3 = _createForOfIteratorHelperLoose();
|
|
if (currentAppIcon !== require(7962) /* FreemiumAppIconIds */.FreemiumAppIconIds.DEFAULT) {
|
|
if (null != tmp5) {
|
|
obj = { style: tmp3.icon, id: currentAppIcon, size: 32 };
|
|
let tmp10 = jsx(importDefault(14358), { style: tmp3.icon, id: currentAppIcon, size: 32 });
|
|
}
|
|
return tmp10;
|
|
}
|
|
obj = { color: INTERACTIVE_ICON_DEFAULT };
|
|
tmp10 = jsx(require(9742) /* ClydeIcon */.ClydeIcon, { color: INTERACTIVE_ICON_DEFAULT });
|
|
};
|