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

Awards

${awards.map(({ awarder, date, summary, title }) => html`

${title}

${awarder && html`
Awarded by ${awarder}
`} ${date && Date(date)}
${summary && markdown(summary)}
`)}
` }