format code

This commit is contained in:
somrat sorkar
2023-05-21 12:44:58 +06:00
parent 7048d2fc88
commit b169d93ec9
31 changed files with 266 additions and 245 deletions
+5 -3
View File
@@ -1,8 +1,10 @@
---
type Pagination = {
section?: string, currentPage?: number, totalPages?: number
}
const { section, currentPage=1, totalPages=1 }: Pagination = Astro.props;
section?: string;
currentPage?: number;
totalPages?: number;
};
const { section, currentPage = 1, totalPages = 1 }: Pagination = Astro.props;
const indexPageLink = currentPage === 2;
const hasPrevPage = currentPage > 1;