diff --git a/src/components/Pagination.tsx b/src/components/Pagination.tsx index c0e95a5..0aca029 100644 --- a/src/components/Pagination.tsx +++ b/src/components/Pagination.tsx @@ -36,6 +36,21 @@ export default function Pagination(props: PaginationProps) { )} + + {currentPage !== 1 && currentPage - 2 > 1 && ( + <> +
  • + +
  • +

    ...

    + + )} + {pageNumbers.map((pageNumber) => (
  • ))} + + {currentPage !== totalPages && currentPage + 2 < totalPages && ( + <> +

    ...

    + +
  • + +
  • + + )} + {currentPage < totalPages && (