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!
) : ( {authorizations.map(authorization => ( ))}
Project name Last edited Access rights
)}
) } ProjectAuthList.propTypes = { authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired, } export default ProjectAuthList