import html from '../utils/html.js' import Date from './date.js' import Link from './link.js' 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)}
`)}
` }