blob: b89cf57fb2e01327b3d45ca0e000bd0b8f33c7f9 [file] [log] [blame]
Krishyab5ef96d2025-06-05 13:57:05 +08001import React, { useEffect } from 'react';
2import Header from '../../components/Header';
3import { useGroupStore } from '../../context/useGroupStore';
4import GroupFilters from './GroupFilters';
5import GroupList from './GroupList';
6import GroupPagination from './GroupPagination';
223010093a876cc2025-04-14 16:22:20 +08007import './InterestGroup.css';
223010093a876cc2025-04-14 16:22:20 +08008const InterestGroup = () => {
Krishyab5ef96d2025-06-05 13:57:05 +08009 const { fetchGroupList, setPage, handleSearch } = useGroupStore();
223010093a876cc2025-04-14 16:22:20 +080010
Krishyab5ef96d2025-06-05 13:57:05 +080011 // 初始化加载
223010093a876cc2025-04-14 16:22:20 +080012 useEffect(() => {
Krishyab5ef96d2025-06-05 13:57:05 +080013 fetchGroupList();
14 }, [fetchGroupList]);
Krishyac0f7e9b2025-04-22 15:28:28 +080015
223010093a876cc2025-04-14 16:22:20 +080016 return (
17 <div className="interest-group-container">
223010093a876cc2025-04-14 16:22:20 +080018 <Header />
Krishyac0f7e9b2025-04-22 15:28:28 +080019 <div className="interest-group-card">
Krishyab5ef96d2025-06-05 13:57:05 +080020 <GroupFilters />
21 <GroupList />
22 <GroupPagination />
223010093a876cc2025-04-14 16:22:20 +080023 </div>
24 </div>
25 );
26};
27
Krishyac0f7e9b2025-04-22 15:28:28 +080028export default InterestGroup;