PostGrid.jsx
346 B · jsx · 12 lines
1import { PostCard } from "./PostCard.jsx";23export function PostGrid({ posts, eager = 4, now }) {4 if (!posts.length) return <p className="lead empty">No posts yet.</p>;5 return (6 <div className="grid">7 {posts.map((post, i) => (8 <PostCard key={post.name} post={post} eager={i < eager} now={now} />9 ))}10 </div>11 );12}