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

34 lines
1.9 KiB
TypeScript

/* Metro module 8510; source: modules/user_profile/native/UserProfileAvatar.tsx; dependencies: [31, 27, 6816, 33, 8496, 8417, 2] */
function _fun67452(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8695:6, offset: 0x01c23462, size: 196 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(6816) /* metro dependency 6816: Constants */).AVATAR_SIZE_VARIANT;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.Fragment;
const env0_6 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfileAvatar.tsx');
exports.default = UserProfileAvatar;
}
function UserProfileAvatar(a0) { // fn#67453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8695:282, offset: 0x01c23526, size: 230 bytes, params: 2, frame: 25
const backgroundColor = a0.backgroundColor;
const size = a0.size;
const r9 = size !== undefined ? size : AVATAR_SIZE_VARIANT;
const value = Object.create(null);
value.backgroundColor = 0;
value.size = 0;
const value2 = copyDataProperties({}, a0, value, backgroundColor);
const value4 = (importDefault(8496) /* metro dependency 8496: UserProfileSharedStyles */)();
return (
<>
<View style={[value4.avatarBackground, value4.avatarPosition, {backgroundColor: backgroundColor}]} />
{((Component) => <Component style={[value4.avatar,
value4.avatarPosition]} size={r9} {...value2} />)(importDefault(8417) /* metro dependency 8417: HeaderAvatar */)}
</>
);
}