()
| 17 | import { getLessonGlobalTag } from "@/features/lessons/db/cache/lessons" |
| 18 | |
| 19 | export 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 | |
| 35 | async function getCourses() { |
| 36 | "use cache" |
nothing calls this directly
no test coverage detected