import React from 'react'; import { name } from 'country-emoji'; import iphone from '../images/iphone.png'; import android from '../images/android.png'; import windows from '../images/windows.svg'; import apple from '../images/apple.svg'; const icons = { iphone, android, windows, apple }; export default function Person({ person, currentTag }) { const url = new URL(person.url); const img = `https://logo.clearbit.com/${url.host}`; return (
{person.name}

{person.name} {person.emoji}

{`${url.host}${url.pathname}`}

{person.description}

{person.country} {person.computer && ( {person.computer} )} {person.phone && ( {person.phone} )} {person.twitter && ( @ {person.twitter.replace('@', '')} )} {person.github && {person.github}}
); }