diff --git a/frontend/src/components/Common/PaginationFooter.tsx b/frontend/src/components/Common/PaginationFooter.tsx
new file mode 100644
index 0000000000..788246399f
--- /dev/null
+++ b/frontend/src/components/Common/PaginationFooter.tsx
@@ -0,0 +1,36 @@
+import { Button, Flex } from "@chakra-ui/react"
+
+type PaginationFooterProps = {
+ hasNextPage?: boolean
+ hasPreviousPage?: boolean
+ onChangePage: (newPage: number) => void
+ page: number
+}
+
+export function PaginationFooter({
+ hasNextPage,
+ hasPreviousPage,
+ onChangePage,
+ page,
+}: PaginationFooterProps) {
+ return (
+
+
+ Page {page}
+
+
+ )
+}
diff --git a/frontend/src/routes/_layout/admin.tsx b/frontend/src/routes/_layout/admin.tsx
index 644653ff79..b96fbc3799 100644
--- a/frontend/src/routes/_layout/admin.tsx
+++ b/frontend/src/routes/_layout/admin.tsx
@@ -1,7 +1,6 @@
import {
Badge,
Box,
- Button,
Container,
Flex,
Heading,
@@ -23,6 +22,7 @@ import { type UserPublic, UsersService } from "../../client"
import AddUser from "../../components/Admin/AddUser"
import ActionsMenu from "../../components/Common/ActionsMenu"
import Navbar from "../../components/Common/Navbar"
+import { PaginationFooter } from "../../components/Common/PaginationFooter.tsx"
const usersSearchSchema = z.object({
page: z.number().catch(1),
@@ -128,7 +128,7 @@ function UsersTable() {
@@ -137,21 +137,12 @@ function UsersTable() {
)}
-
-
- Page {page}
-
-
+
>
)
}
diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx
index 174fa83c9b..9216d3cbb4 100644
--- a/frontend/src/routes/_layout/items.tsx
+++ b/frontend/src/routes/_layout/items.tsx
@@ -1,7 +1,5 @@
import {
- Button,
Container,
- Flex,
Heading,
SkeletonText,
Table,
@@ -21,6 +19,7 @@ import { ItemsService } from "../../client"
import ActionsMenu from "../../components/Common/ActionsMenu"
import Navbar from "../../components/Common/Navbar"
import AddItem from "../../components/Items/AddItem"
+import { PaginationFooter } from "../../components/Common/PaginationFooter.tsx"
const itemsSearchSchema = z.object({
page: z.number().catch(1),
@@ -112,21 +111,12 @@ function ItemsTable() {
)}
-
-
- Page {page}
-
-
+
>
)
}