import * as React from 'react'; import PostStatusLabel from '../shared/PostStatusLabel'; import IPostStatus from '../../interfaces/IPostStatus'; interface Props { id: number; title: string; description?: string; postStatus: IPostStatus; } const PostListItem = ({ id, title, description, postStatus}: Props) => (
{title}
{ description && description.length > 120 ? description.slice(0, 119) + '...' : description || '' }
0 comments
{ postStatus ? : null }
); export default PostListItem;