15 lines
723 B
TypeScript
15 lines
723 B
TypeScript
// Metro module 11995 (f11996).
|
|
import { View } from "react-native";
|
|
import { ActivityTypes } from "../../../Constants";
|
|
import { jsx } from "react/jsx-runtime";
|
|
import { PartyBadge, TimestampBadge, EpisodeBadge } from "./UserProfileActivityBadges";
|
|
export default function UserProfileActivityCardBadges(props) {
|
|
const { activity, style } = props;
|
|
const r15 = activity.type === ActivityTypes.PLAYING ? [PartyBadge, TimestampBadge] : activity.type === ActivityTypes.LISTENING ? [TimestampBadge] : activity.type === ActivityTypes.WATCHING ? [TimestampBadge, EpisodeBadge] : [];
|
|
return r15.length !== 0 ? <View style={style}>
|
|
{r15.map((item, index) => jsx(item, {
|
|
activity
|
|
}, index))}
|
|
</View> : null;
|
|
};
|