Files
discord-decomp/sources/modules/collectibles/native/ProfileEffectSampleV2.tsx
T
2026-07-27 16:20:00 +03:00

38 lines
2.8 KiB
TypeScript

/* Metro module 8472; source: modules/collectibles/native/ProfileEffectSampleV2.tsx; dependencies: [27, 8471, 33, 4501, 697, 5475, 8473, 8474, 2] */
function _fun67269(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8657:6, offset: 0x01c1c60e, size: 304 bytes, params: 8, frame: 23
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(27) /* metro dependency 27 */).View;
const SAMPLE_PROFILE_ASPECT_RATIO = (require(8471) /* metro dependency 8471: CollectiblesPreviewConstants */).SAMPLE_PROFILE_ASPECT_RATIO;
let value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {profileContainer: {'position': 'absolute', 'display': 'flex', 'height': '100%', 'width': '100%'}};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object2.profileBackground = {backgroundColor: BACKGROUND_MOD_SUBTLE};
object2.sampleProfileImage = {aspectRatio: SAMPLE_PROFILE_ASPECT_RATIO};
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
object2.profileBorder = {'position': 'absolute', 'height': '100%', 'width': '100%', 'borderWidth': 1,
borderColor: BORDER_MUTED};
const env0_5 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/collectibles/native/ProfileEffectSampleV2.tsx');
exports.default = _default_67270;
}
function _default_67270({item, hideBackground}) { // fn#67270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8657:517, offset: 0x01c1c73e, size: 278 bytes, params: 2, frame: 24
hideBackground = !(hideBackground === undefined) && hideBackground;
const styles = useStyles();
const value2 = !hideBackground;
return (
<View style={[styles.profileContainer, hideBackground ? value2 : styles.profileBackground]}>
{((Component) => <Component style={[styles.sampleProfileImage]} source={{uri: importDefault(8473) /* metro dependency 8473: sample_profilePng */}} accessible={false} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
{hideBackground ? value2 : <View style={styles.profileBorder} />}
{((Component) => <Component skuId={item.skuId} bannerAdjustment={0} useThumbnail />)(importDefault(8474) /* metro dependency 8474: ProfileEffect */)}
</View>
);
}