From 65ee69c64569a65c5768a3ca7993153aafe21478 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 22:38:34 +0000 Subject: Refactor Pagination component and add Next and Prev components --- src/components/Pagination.astro | 36 +++++++----------------------------- src/components/Pagination/Next.astro | 18 ++++++++++++++++++ src/components/Pagination/Prev.astro | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+), 29 deletions(-) create mode 100644 src/components/Pagination/Next.astro create mode 100644 src/components/Pagination/Prev.astro diff --git a/src/components/Pagination.astro b/src/components/Pagination.astro index e9fbc69..cc85db7 100644 --- a/src/components/Pagination.astro +++ b/src/components/Pagination.astro @@ -1,4 +1,7 @@ --- +import Next from "./Pagination/Next.astro"; +import Prev from "./Pagination/Prev.astro"; + type Props = { readonly prevUrl?: string; readonly nextUrl?: string; @@ -8,39 +11,14 @@ const { prevUrl, nextUrl } = Astro.props; --- -