import PropTypes from 'prop-types'
import React from 'react'
import Shapes from '../../shapes/index'
import ProjectAuthRow from './ProjectAuthRow'
const ProjectAuthList = ({ 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 => (
))}
)}
)
}
ProjectAuthList.propTypes = {
authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired,
}
export default ProjectAuthList