text: import React, { PropTypes } from 'react';
  
  // Import Components
  import PostListItem from './PostListItem/PostListItem';
  
  function PostList(props) {
    return (
      <div className="listView">
        {
          props.posts.map(post => (
            <PostListItem
              post={post}
              key={post.cuid}
              onDelete={() => props.handleDeletePost(post.cuid)}
              thumbUp={() => props.thumbUp(post)}
              thumbDown={() => props.thumbDown(post)}
            />
          ))
        }
      </div>
    );
  }
  
  PostList.propTypes = {
    posts: PropTypes.arrayOf(PropTypes.shape({
      name: PropTypes.string.isRequired,
      title: PropTypes.string.isRequired,
      content: PropTypes.string.isRequired,
      slug: PropTypes.string.isRequired,
      cuid: PropTypes.string.isRequired,
    })).isRequired,
    handleDeletePost: PropTypes.func.isRequired,
    thumbUp: PropTypes.func.isRequired,
    thumbDown: PropTypes.func.isRequired,
  };
  
  export default PostList;
  