修改好友动态、兴趣小组
Change-Id: I8dc8f304f9ac9c968e316bc997b2aeb58b26fe48
diff --git a/src/pages/InterestGroup/GroupPagination.jsx b/src/pages/InterestGroup/GroupPagination.jsx
new file mode 100644
index 0000000..14b093b
--- /dev/null
+++ b/src/pages/InterestGroup/GroupPagination.jsx
@@ -0,0 +1,28 @@
+import React from 'react';
+import { useGroupStore } from '../../context/useGroupStore';
+
+const GroupPagination = () => {
+ const { page, totalPages, setPage } = useGroupStore();
+
+ const handlePrevPage = () => {
+ if (page > 1) setPage(page - 1);
+ };
+
+ const handleNextPage = () => {
+ if (page < totalPages) setPage(page + 1);
+ };
+
+ return (
+ <div className="pagination">
+ <button onClick={handlePrevPage} disabled={page <= 1}>
+ 上一页
+ </button>
+ <span>第 {page} 页 / 共 {totalPages} 页</span>
+ <button onClick={handleNextPage} disabled={page >= totalPages}>
+ 下一页
+ </button>
+ </div>
+ );
+};
+
+export default GroupPagination;
\ No newline at end of file