mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-16 01:13:21 +02:00
31 lines
806 B
JavaScript
31 lines
806 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import shortid from 'shortid'
|
|
import Icon from '../../atoms/Icon'
|
|
import ResumeItem, { ResumeItemContentProps } from './ResumeItem'
|
|
import { subTitle } from './ResumeSection.module.css'
|
|
|
|
export default function ResumeSection({ section }) {
|
|
return (
|
|
<>
|
|
<h3 className={subTitle}>
|
|
<Icon name={section.icon} />
|
|
{section.name}
|
|
</h3>
|
|
<div>
|
|
{section.content.map((content) => (
|
|
<ResumeItem key={shortid.generate()} content={content} />
|
|
))}
|
|
</div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
ResumeSection.propTypes = {
|
|
section: PropTypes.shape({
|
|
name: PropTypes.string.isRequired,
|
|
icon: PropTypes.string.isRequired,
|
|
content: PropTypes.arrayOf(ResumeItemContentProps).isRequired
|
|
}).isRequired
|
|
}
|