import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { Link } from 'react-router'; export default function EntryListing({ collection, entries }) { const name = collection.get('name'); return

Listing entries!

{entries.map((entry) => { const path = `/collections/${name}/entries/${entry.get('slug')}`; return

{entry.getIn(['data', 'title'])}

; })}
; } EntryListing.propTypes = { collection: ImmutablePropTypes.map.isRequired, entries: ImmutablePropTypes.list, };