import html from '../utils/html.js' import markdown from '../utils/markdown.js' import Date from './date.js' import Link from './link.js' export default function Publications(publications = []) { return publications.length > 0 && html`

Publications

${publications.map(({ name, publisher, releaseDate, summary, url }) => html`

${Link(url, name)}

${publisher && html`
Published by ${publisher}
`} ${releaseDate && Date(releaseDate)}
${summary && markdown(summary)}
`)}
` }