import html from '../utils/html.js' import markdown from '../utils/markdown.js' import Icon from './icon.js' import Link from './link.js' const formatCountry = countryCode => Intl.DisplayNames ? new Intl.DisplayNames(['en'], { type: 'region' }).of(countryCode) : countryCode export default function Header(basics = {}) { const { email, image, label, location, name, phone, profiles = [], summary, url } = basics return html`
${image && html``}
${name && html`

${name}

`} ${label && html`

${label}

`}
${summary && html`
${markdown(summary)}
`}
` }