MCPcopy Create free account
hub / github.com/WebDevSimplified/course-platform / CoursesPage

Function CoursesPage

src/app/admin/courses/page.tsx:19–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17import { getLessonGlobalTag } from "@/features/lessons/db/cache/lessons"
18
19export default async function CoursesPage() {
20 const courses = await getCourses()
21
22 return (
23 <div className="container my-6">
24 <PageHeader title="Courses">
25 <Button asChild>
26 <Link href="/admin/courses/new">New Course</Link>
27 </Button>
28 </PageHeader>
29
30 <CourseTable courses={courses} />
31 </div>
32 )
33}
34
35async function getCourses() {
36 "use cache"

Callers

nothing calls this directly

Calls 1

getCoursesFunction · 0.70

Tested by

no test coverage detected