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} />;
}
