- {page}페이지
+ {totalPages != null
+ ? `${page} / ${totalPages} 페이지${total != null ? ` (총 ${total.toLocaleString()}건)` : ""}`
+ : `${page}페이지`}
diff --git a/frontend/src/hooks/useEventsPage.ts b/frontend/src/hooks/useEventsPage.ts
index eb35261..61ac2d1 100644
--- a/frontend/src/hooks/useEventsPage.ts
+++ b/frontend/src/hooks/useEventsPage.ts
@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback, useRef, useMemo } from "react";
-import { getEvents } from "@/api/events";
+import { getEvents, getEventsPaged } from "@/api/events";
import { getCameras } from "@/api/cameras";
import { useAppContext } from "./useAppContext";
import type { EventResponse, CameraResponse } from "@/types";
@@ -27,6 +27,7 @@ export function useEventsPage() {
const [pageSize, setPageSize] = useState(8);
const [rawEvents, setRawEvents] = useState
([]);
const [hasNextPage, setHasNextPage] = useState(false);
+ const [total, setTotal] = useState(0);
const [loading, setLoading] = useState(true);
const cameraMapRef = useRef