--- import type {Post} from "@/types/post"; import PostItem from '@/components/Post/Item.astro' interface Props { posts: Post[] } const {posts} = Astro.props --- {posts.map(post => ( ))}