2023-01-30 02:38:45 +01:00
|
|
|
import html from '../utils/html.js'
|
|
|
|
|
2023-09-28 02:50:43 +02:00
|
|
|
/**
|
|
|
|
* @param {import('../schema.d.ts').ResumeSchema['languages']} languages
|
|
|
|
* @returns {string | false}
|
|
|
|
*/
|
2023-01-30 02:38:45 +01:00
|
|
|
export default function Languages(languages = []) {
|
|
|
|
return languages.length > 0 && html`
|
|
|
|
<section id="languages">
|
|
|
|
<h3>Languages</h3>
|
|
|
|
<div class="grid-list">
|
|
|
|
${languages.map(({ fluency, language }) => html`
|
|
|
|
<div>
|
|
|
|
${language && html`<h4>${language}</h4>`}
|
|
|
|
${fluency}
|
|
|
|
</div>
|
|
|
|
`)}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
`
|
|
|
|
}
|