diff --git a/src/app/(pages)/home/page.tsx b/src/app/(pages)/home/page.tsx index eddb651..edbb635 100644 --- a/src/app/(pages)/home/page.tsx +++ b/src/app/(pages)/home/page.tsx @@ -2,18 +2,46 @@ import { getArticlesPaginated } from '@/lib/feature/article/article.external'; import { ArticleCard } from '@/ui/components/internal/article-card'; import { ArticleListPagination } from '@/ui/components/internal/article-list-pagination'; import { FileTextIcon } from 'lucide-react'; +import { Suspense } from 'react'; const PAGE_SIZE = 9; -type HomeProps = { - searchParams: Promise<{ page?: string; pageSize?: string }>; -}; +const ArticleCardSkeleton = () => ( +
- Dev Blog -
-- {total === 0 - ? 'No articles published yet.' - : `${total} article${total === 1 ? '' : 's'} published`} -
-+ {total === 0 + ? 'No articles published yet.' + : `${total} article${total === 1 ? '' : 's'} published`} +
{articles.length === 0 ? (+ Dev Blog +
+