import * as React from 'react'; interface Props { title: string; description?: string; postStatus: {name: string, color: string}; } const PostListItem = ({ title, description, postStatus}: Props) => (
{title}
{ description && description.length > 120 ? description.slice(0, 119) + '...' : description || '' }
0 comments
{postStatus.name}
); export default PostListItem;