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