import html from '../utils/html.js' import markdown from '../utils/markdown.js' import Duration from './duration.js' import Link from './link.js' 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}
${Duration(startDate, endDate)}
${summary && markdown(summary)} ${highlights.length > 0 && html`
    ${highlights.map(highlight => html`
  • ${markdown(highlight)}
  • `)}
`}
`)}
` }