38 lines
2.1 KiB
TypeScript
38 lines
2.1 KiB
TypeScript
/* Metro module 10349; source: modules/user_profile/native/ApplicationIconAndName.tsx; dependencies: [33, 4501, 697, 1305, 4573, 2] */
|
|
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 value = require(33) /* metro dependency 33 */;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.Fragment;
|
|
const env0_5 = value.jsxs;
|
|
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};
|
|
});
|
|
(require(2) /* metro dependency 2 */).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 = (require(1305) /* metro dependency 1305: native */).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 = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
return (
|
|
<>
|
|
{icon}
|
|
<Text variant={textVariant}>
|
|
{value3 + application.name + (useComma ? ', ' : value3)}
|
|
</Text>
|
|
</>
|
|
);
|
|
}
|
|
|