book_manage/apps/web/src/app/main/courses/page.tsx

27 lines
667 B
TypeScript
Raw Normal View History

2025-02-24 20:53:42 +08:00
import { useState, useMemo, useEffect } from "react";
2025-02-20 20:02:27 +08:00
import FilterSection from "./components/FilterSection";
import CourseList from "./components/CourseList";
import { api } from "@nice/client";
2025-02-25 12:31:37 +08:00
import {
courseDetailSelect,
CourseDto,
LectureType,
PostType,
} from "@nice/common";
2025-02-24 20:53:42 +08:00
import { useSearchParams } from "react-router-dom";
import { set } from "idb-keyval";
import { useMainContext } from "../layout/MainProvider";
2025-02-25 19:50:36 +08:00
import AllCoursesLayout from "./layout/AllCoursesLayout";
2025-02-06 16:32:31 +08:00
2025-02-25 12:56:53 +08:00
interface paginationData {
items: CourseDto[];
totalPages: number;
2025-02-25 12:56:53 +08:00
}
2025-02-06 16:32:31 +08:00
export default function CoursesPage() {
2025-02-20 20:02:27 +08:00
return (
<>
2025-02-25 19:50:36 +08:00
<AllCoursesLayout></AllCoursesLayout>
</>
2025-02-20 20:02:27 +08:00
);
}