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

Volunteer

${volunteer.map(({ highlights = [], organization, position, startDate, endDate, summary, url }) => html`

${Link(url, organization)}

${position} ${startDate && html`
${Duration(startDate, endDate)}
`}
${summary && markdown(summary)} ${highlights.length > 0 && html`
    ${highlights.map(highlight => html`
  • ${markdown(highlight)}
  • `)}
`}
`)}
` }