14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
import { requireTeacher } from "@/lib/auth/requireTeacher";
|
|
import TeacherEditCourseForm from "@/components/teacher/TeacherEditCourseForm";
|
|
|
|
type TeacherEditCoursePageProps = {
|
|
params: Promise<{ slug: string }>;
|
|
};
|
|
|
|
export default async function TeacherEditCoursePage({ params }: TeacherEditCoursePageProps) {
|
|
await requireTeacher();
|
|
const { slug } = await params;
|
|
|
|
return <TeacherEditCourseForm slug={slug} />;
|
|
}
|