autodoload

This commit is contained in:
john 2025-05-04 00:28:51 +02:00
parent 8cd565c647
commit 62afad71d3
6 changed files with 144 additions and 88 deletions

View 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>
)
}