Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
// Module ID: 13151
|
|
// Function ID: 13152
|
|
// Name: UserProfileActivityCardBadges
|
|
// Dependencies: [19, 17, 1074, 21, 13152, 2]
|
|
// Exports: default
|
|
|
|
// Module 13151 (UserProfileActivityCardBadges)
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const View = fn(17).View;
|
|
const ActivityTypes = fn(1074).ActivityTypes;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileActivityCardBadges.tsx");
|
|
|
|
export default function UserProfileActivityCardBadges(activity) {
|
|
activity = activity.activity;
|
|
if (activity.type === ActivityTypes.PLAYING) {
|
|
const items = [activity(13152).PartyBadge, activity(13152).TimestampBadge];
|
|
let items3 = items;
|
|
} else if (activity.type === tmp.LISTENING) {
|
|
const items1 = [activity(13152).TimestampBadge];
|
|
items3 = items1;
|
|
} else if (activity.type === tmp.WATCHING) {
|
|
const items2 = [activity(13152).TimestampBadge, activity(13152).EpisodeBadge];
|
|
items3 = items2;
|
|
} else {
|
|
items3 = [];
|
|
}
|
|
let tmp8 = null;
|
|
if (0 !== items3.length) {
|
|
const obj = { style: activity.style, children: items3.map((item, index) => jsx(item, { activity }, index)) };
|
|
tmp8 = <View style={arg0.style}>{items3.map((item, index) => jsx(item, { activity }, index))}</View>;
|
|
}
|
|
return tmp8;
|
|
};
|