import html from '../utils/html.js' import markdown from '../utils/markdown.js' import Date from './date.js' /** * @param {import('../schema.d.ts').ResumeSchema['awards']} awards * @returns {string | false} */ 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)}
`)}
` }