import { Button } from '@metafam/ds'; import React from 'react'; import { FaGithub, FaTwitter } from 'react-icons/fa'; import { PlayerFragmentFragment } from '../../graphql/autogen/types'; 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; })} ); };