import { CourseList } from "@web/src/components/models/course/list/course-list"; import { api } from "@nice/client"; import { useState } from "react"; import { CourseCard } from "@web/src/components/models/course/card/CourseCard"; import { useAuth } from "@web/src/providers/auth-provider"; export default function StudentCoursesPage() { const [currentPage, setCurrentPage] = useState(1); const { user } = useAuth() const { data: paginationRes, refetch } = api.course.findManyWithPagination.useQuery({ page: currentPage, pageSize: 8, where: { enrollments: { some: { studentId: user?.id } } } }); const handlePageChange = (page: number) => { setCurrentPage(page); refetch() }; return (

我参加的课程

}>
); }