import html from '../utils/html.js' import markdown from '../utils/markdown.js' import Icon from './icon.js' import Link from './link.js' /** * @param {string} countryCode * @returns {string | undefined} */ const formatCountry = countryCode => Intl.DisplayNames ? new Intl.DisplayNames(['en'], { type: 'region' }).of(countryCode) : countryCode /** * @param {import('../schema.d.ts').ResumeSchema['basics']} basics * @returns {string} */ 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)}
`}
` }