import PropTypes from 'prop-types'
import React from 'react'
import { Project } from '../../shapes'
import ProjectRow from './ProjectRow'
const ProjectList = ({ projects }) => {
return (
{projects.length === 0 ? (
No projects here yet... Add some with the 'New Project' button!
) : (
| Project name |
Last edited |
Access rights |
|
{projects.map((project) => (
))}
)}
)
}
ProjectList.propTypes = {
projects: PropTypes.arrayOf(Project).isRequired,
}
export default ProjectList