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 Work(work = []) { return work.length > 0 && html`

Work

${work.map(({ description, highlights = [], location, name, position, startDate, endDate, summary, url }) => html`

${position}

${Link(url, name)} ${description && html`${description}`}
${Duration(startDate, endDate)}
${location && html`
${location}
`}
${summary && markdown(summary)} ${highlights.length > 0 && html`
    ${highlights.map(highlight => html`
  • ${markdown(highlight)}
  • `)}
`}
`)}
` }