mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-06-16 01:13:21 +02:00
31 lines
638 B
JavaScript
31 lines
638 B
JavaScript
import React, { memo } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import Repository from '../molecules/Repository'
|
|
import {
|
|
section,
|
|
sectionTitle,
|
|
repos as styleRepos
|
|
} from './Repositories.module.css'
|
|
|
|
Repositories.propTypes = {
|
|
repos: PropTypes.array
|
|
}
|
|
|
|
function Repositories({ repos }) {
|
|
if (!repos) return null
|
|
|
|
return (
|
|
<section className={section}>
|
|
<h1 className={sectionTitle}>Open Source Projects</h1>
|
|
<div className={styleRepos}>
|
|
{repos.map((repo) => (
|
|
<Repository key={repo.name} repo={repo} />
|
|
))}
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|
|
|
|
export default memo(Repositories)
|