14 | {props.includeLink === false ? '' :
"{props.title}" {props.link ?
[link] : ''}}
15 |
16 | {moment(props.createdAt).fromNow()} | {`by `} {props.postAuthor} | {`${props.numComments} comments`}
17 |
18 |
19 | )
20 |
21 | export default PostMeta;
--------------------------------------------------------------------------------
/public/app/src/modules/forum/components/posts/post/components/PostSummary.tsx:
--------------------------------------------------------------------------------
1 |
2 | import React from 'react'
3 | import "../styles/PostSummary.sass"
4 | import PostMeta from './PostMeta'
5 | import { Post } from '../../../../models/Post'
6 | import { TextUtil } from '../../../../../../shared/utils/TextUtil'
7 |
8 | interface PostProps extends Post {
9 |
10 | }
11 |
12 | const PostSummary: React.FC