47 lines
3.0 KiB
TypeScript
47 lines
3.0 KiB
TypeScript
/* Metro module 13922; source: modules/app_icons/native/SettingsItemAppIcon.tsx; dependencies: [31, 7902, 33, 4501, 697, 12187, 7903, 8765, 13923, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as AppIconConstantsModule from './AppIconConstants.tsx'; /* Metro dependency 7902 */
|
|
import * as AppIconTypesModule from '../AppIconTypes.tsx'; /* Metro dependency 7903 */
|
|
import * as AppIconUtilsModule from './AppIconUtils.tsx'; /* Metro dependency 12187 */
|
|
|
|
function _fun105686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14119:6, offset: 0x022bff99, size: 220 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const createStyles = CreateStylesModule.createStyles;
|
|
const object2 = {};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{icon: object2}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/app_icons/native/SettingsItemAppIcon.tsx');
|
|
exports.default = SettingsItemAppIcon;
|
|
function SettingsItemAppIcon({color = importDefault(dependencyMap[4]).colors.INTERACTIVE_ICON_DEFAULT}) { // fn#105687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14119:298, offset: 0x022c0075, size: 230 bytes, params: 2, frame: 18
|
|
var r0;
|
|
var value;
|
|
const styles = useStyles();
|
|
const value2 = (AppIconUtilsModule).useCurrentAppIcon();
|
|
const iconById = getIconById(value2);
|
|
const FreemiumAppIconIds = (AppIconTypesModule).FreemiumAppIconIds;
|
|
const DEFAULT = FreemiumAppIconIds.DEFAULT;
|
|
if (value2 === DEFAULT) {
|
|
const ClydeIcon = (require(8765) /* metro dependency 8765: ClydeIcon */).ClydeIcon;
|
|
r0 = <ClydeIcon color={color} />;
|
|
} else if (iconById == null) {
|
|
const ClydeIcon2 = (require(8765) /* metro dependency 8765: ClydeIcon */).ClydeIcon;
|
|
r0 = <ClydeIcon2 color={color} />;
|
|
} else {
|
|
value = importDefault(13923) /* metro dependency 13923: AppIcon */;
|
|
value = ((Component) => <Component style={styles.icon} id={value2} size={32} />)(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun105686, 13922, [31, 7902, 33, 4501, 697, 12187, 7903, 8765, 13923,
|
|
2]) /* metro module 13922, dependencies: [31, 7902, 33, 4501, 697, 12187, 7903, 8765, 13923, 2] */;
|