import html from '../utils/html.js' import Date from './date.js' import Link from './link.js' /** * @param {import('../schema.d.ts').ResumeSchema['certificates']} certificates * @returns {string | false} */ export default function Certificates(certificates = []) { return ( certificates.length > 0 && html`

Certificates

${certificates.map( ({ date, issuer, name, url }) => html`

${Link(url, name)}

${issuer && html`
Issued by ${issuer}
`} ${date && Date(date)}
`, )}
` ) }