autodoload
This commit is contained in:
parent
8cd565c647
commit
62afad71d3
6 changed files with 144 additions and 88 deletions
16
src/components/PostsList.tsx
Normal file
16
src/components/PostsList.tsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Post } from '../model/posts/posts.ts'
|
||||
import PostItem from './PostItem'
|
||||
|
||||
interface PostsFeedProps {
|
||||
posts: Post[]
|
||||
}
|
||||
|
||||
export default function PostsList({ posts }: PostsFeedProps) {
|
||||
return (
|
||||
<div className="flex flex-col gap-6 w-full">
|
||||
{posts.map((post) => (
|
||||
<PostItem key={post.postId} post={post} />
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue