From 6d2cee326e969a1ddcd6f4cd26cb8e425e9ea71c Mon Sep 17 00:00:00 2001 From: Greg Rickaby Date: Tue, 13 Feb 2024 08:25:07 -0600 Subject: [PATCH] add metadata to header --- components/Posts.tsx | 45 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) 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} + +
+
+
-
+ ))} )