diff --git a/components/Posts.tsx b/components/Posts.tsx index b930bf3..47da70c 100644 --- a/components/Posts.tsx +++ b/components/Posts.tsx @@ -1,7 +1,9 @@ 'use client' import Media from '@/components/Media' +import {getTimeAgo} from '@/lib/functions' import {RedditPostResponse} from '@/lib/types' +import {IconArrowUp, IconClock, IconMessage} from '@tabler/icons-react' import Masonry from 'react-masonry-css' /** @@ -26,19 +28,42 @@ export default function Posts(posts: RedditPostResponse) { > {posts.data.children.length > 0 && posts.data.children.map(({data}) => ( -
- - {data.title} - +
+
+ + {data.score} +
+ +
+ + {data.title} + +
+ + + + {data.num_comments} + +
+
+
-
+ ))} )