diff --git a/src/components/Pagination.astro b/src/components/Pagination.astro index fb64089..4cea6fc 100644 --- a/src/components/Pagination.astro +++ b/src/components/Pagination.astro @@ -12,31 +12,39 @@ const { currentPage, totalPages, prevUrl, nextUrl } = Astro.props; const prev = currentPage > 1 ? "" : "disabled"; const next = currentPage < totalPages ? "" : "disabled"; +const isPrevDisabled = prev === "disabled"; +const isNextDisabled = next === "disabled"; --- { totalPages > 1 && (