import React from 'react' ; import { Grid } from '@material-ui/core' ; import Contributor from '../Contributor' ; import { ContributorData } from '../../../../types' ; type Props = { contributors : ContributorData [ ] ; } ; const ContributorsList = ( { contributors } ) => ( < Grid container spacing = { 1 } justify = "flex-start" > { contributors . map ( contributor => ( < Grid key = { contributor . login } item > < Contributor contributor = { contributor } / > < /Grid>))} < /Grid>); export default ContributorsList ;