+ );
+}
+
+export { ModifyPage };
\ No newline at end of file
diff --git a/apps/cs/src/shared/config/api.ts b/apps/cs/src/shared/config/api.ts
index 86478ac19..94d2e728d 100644
--- a/apps/cs/src/shared/config/api.ts
+++ b/apps/cs/src/shared/config/api.ts
@@ -13,6 +13,8 @@ export const ENDPOINT = {
LOGIN: "/user-service/login",
USERS: "/user-service/api/v1/users",
SILENT_REFRESH: "/user-service/api/v1/users/token/refresh",
+ AUTHRTS: "/user-service/api/v1/authorizations",
+ ROLES_AUTHRTS: "/user-service/api/v1/role-authorizations",
},
CMS_SERVICE: {
SITES: "/cms-service/api/v1/sites",
diff --git a/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx
index a122d99c3..57c48a84d 100644
--- a/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx
+++ b/apps/wr/app/reuseFaciltyManage/reuseFacilityInsert/publicReuseFaciltyInsert/page.tsx
@@ -49,4 +49,4 @@ import { useWrStore } from '../../../store';
>
)
-}
\ No newline at end of file
+}
diff --git a/packages/.gitignore b/packages/.gitignore
new file mode 100644
index 000000000..45784b06e
--- /dev/null
+++ b/packages/.gitignore
@@ -0,0 +1 @@
+.qodo
diff --git a/packages/common/components/src/ui/pagination/index.tsx b/packages/common/components/src/ui/pagination/index.tsx
new file mode 100644
index 000000000..5557727f5
--- /dev/null
+++ b/packages/common/components/src/ui/pagination/index.tsx
@@ -0,0 +1,90 @@
+// apps/cs/src/common/components/ui/pagination.tsx
+import { Button } from "../button";
+
+interface PaginationProps {
+ currentPage: number;
+ totalPages: number;
+ onPageChange: (page: number) => void;
+}
+
+function Pagination({ currentPage, totalPages, onPageChange }: PaginationProps) {
+ // 표시할 페이지 번호 범위 계산
+ const getPageRange = () => {
+ const range: number[] = [];
+ const maxButtons = 5; // 한 번에 보여줄 최대 페이지 버튼 수
+ const halfMaxButtons = Math.floor(maxButtons / 2);
+
+ let startPage = Math.max(currentPage - halfMaxButtons, 1);
+ let endPage = Math.min(startPage + maxButtons - 1, totalPages);
+
+ if (endPage - startPage + 1 < maxButtons) {
+ startPage = Math.max(endPage - maxButtons + 1, 1);
+ }
+
+ for (let i = startPage; i <= endPage; i++) {
+ range.push(i);
+ }
+
+ return range;
+ };
+
+ if (totalPages <= 1) return null;
+
+ return (
+
+ {/* 첫 페이지 버튼 */}
+
+
+ {/* 이전 페이지 버튼 */}
+
+
+ {/* 페이지 번호 버튼들 */}
+ {getPageRange().map((pageNum) => (
+
+ ))}
+
+ {/* 다음 페이지 버튼 */}
+
+
+ {/* 마지막 페이지 버튼 */}
+
+
+ );
+}
+
+export { Pagination };
\ No newline at end of file