import React from 'react'; import {PostType, UserType} from '../../types'; import {Post} from '../common'; interface FeedProps { user: UserType; } const Feed: React.FC = ({user}) => { const posts: Array = []; const dummyPost: PostType = { owner: user, }; for (let i = 0; i < 20; i++) { posts.push(dummyPost); } return ( <> {posts.map((post, index) => ( ))} ); }; export default Feed;