aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Feed.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/Feed.tsx')
-rw-r--r--src/components/profile/Feed.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/profile/Feed.tsx b/src/components/profile/Feed.tsx
new file mode 100644
index 00000000..6780f8c5
--- /dev/null
+++ b/src/components/profile/Feed.tsx
@@ -0,0 +1,25 @@
+import React from 'react';
+import {PostType, UserType} from '../../types';
+import {Post} from '../common';
+
+interface FeedProps {
+ user: UserType;
+}
+const Feed: React.FC<FeedProps> = ({user}) => {
+ const posts: Array<PostType> = [];
+ const dummyPost: PostType = {
+ owner: user,
+ };
+ for (let i = 0; i < 20; i++) {
+ posts.push(dummyPost);
+ }
+ return (
+ <>
+ {posts.map((post, index) => (
+ <Post key={index} post={post} />
+ ))}
+ </>
+ );
+};
+
+export default Feed;