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