import { Avatar, Heading, HStack, MetaTag, SimpleGrid, Text, VStack, Wrap, } from '@metafam/ds'; import { MetaLink } from 'components/Link'; import { PlayerContacts } from 'components/Player/PlayerContacts'; import { PlayerFragmentFragment } from 'graphql/autogen/types'; import React from 'react'; import { getPlayerImage, getPlayerName } from 'utils/playerHelpers'; type Props = { players: PlayerFragmentFragment[]; }; export const PlayerList: React.FC = ({ players }) => ( {players.map((p) => ( {getPlayerName(p)} {p.rank} XP: {Math.floor(p.totalXp)} {p.daohausMemberships.length ? ( MEMBER OF {p.daohausMemberships.map((member) => ( {member.moloch.title} ))} ) : null} {p.Accounts.length ? ( CONTACT ) : null} ))} );