49 lines
2.6 KiB
TypeScript
49 lines
2.6 KiB
TypeScript
/* Metro module 10349; source: modules/user_profile/native/ApplicationIconAndName.tsx; dependencies: [33, 4501, 697, 1305, 4573, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
|
|
function _fun80208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10535:6, offset: 0x01e714c1, size: 175 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
|
|
var object2 = {width: a0, height: a0, marginTop: -1, marginRight: 4};
|
|
object2.borderRadius = importDefault(dependencyMap[2]).radii.xs;
|
|
return {gameIcon: object2};
|
|
});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/native/ApplicationIconAndName.tsx');
|
|
exports.default = ApplicationIconAndName;
|
|
function ApplicationIconAndName({application, textVariant, iconSize, useComma}) { // fn#80210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10535:352, offset: 0x01e715c0, size: 269 bytes, params: 2, frame: 26
|
|
useComma = !(useComma === undefined) && useComma;
|
|
const styles = useStyles(iconSize);
|
|
const jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
|
const Icon = (NativeModule).Icon;
|
|
const iconURL = application.getIconURL(iconSize);
|
|
const value3 = '';
|
|
const icon = (
|
|
<Icon
|
|
style={styles.gameIcon}
|
|
resizeMode="contain"
|
|
source={{uri: iconURL ?? value3}}
|
|
disableColor
|
|
key={application.id}
|
|
/>
|
|
);
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<>
|
|
{icon}
|
|
<Text variant={textVariant}>
|
|
{value3 + application.name + (useComma ? ', ' : value3)}
|
|
</Text>
|
|
</>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun80208, 10349, [33, 4501, 697, 1305, 4573,
|
|
2]) /* metro module 10349, dependencies: [33, 4501, 697, 1305, 4573, 2] */;
|