import { Button, Wrap, WrapItem } from '@metafam/ds'; import { PlayerFragmentFragment } from 'graphql/autogen/types'; import React from 'react'; import { FaEthereum, FaGithub, FaTwitter } from 'react-icons/fa'; import { formatAddress } from '../../utils/playerHelpers'; type Props = { player: PlayerFragmentFragment; }; export const PlayerContacts: React.FC = ({ player }) => { return ( {player.Accounts.map((acc) => { if (acc.type === 'TWITTER') { const link = `https://twitter.com/${acc.identifier}`; return ( ); } if (acc.type === 'GITHUB') { const link = `https://github.com/${acc.identifier}`; return ( ); } return null; })} {player.ethereum_address ? ( ) : null} ); };