import { BrightIdIcon, Button, Tooltip, Wrap, WrapItem } from '@metafam/ds'; import { PlayerFragmentFragment } from 'graphql/autogen/types'; import { useBrightIdStatus } from 'lib/hooks/brightId'; import { useCopyToClipboard } from 'lib/hooks/useCopyToClipboard'; 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 }) => { const { verified } = useBrightIdStatus({ player }); const [copied, handleCopy] = useCopyToClipboard(); 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} {verified ? ( ) : null} ); };