import PostCard from './post-card'; import PostCardLoading from './post-card-loading'; import { PostPerPage, postLists } from 'lib/posts'; import { Fragment, Suspense } from 'react'; import Pagination from 'components/rua/rua-pagination'; import clsx from 'clsx'; export default async function Page() { const allPosts = await postLists(); const posts = allPosts.slice(0, PostPerPage); const next = 2; const total = Math.ceil(allPosts.length / PostPerPage); return ( <> {posts.map((post) => ( }> ))} ); }