---
import SinglePostCard from "./SinglePostCard.astro";

const { filteredPosts } = Astro.props;
---

<div class="grid gap-2 lg:grid-cols-2">
  {filteredPosts.map((post) => <SinglePostCard post={post} />)}
</div>
