import { requireTeacher } from "@/lib/auth/requireTeacher";
import TeacherNewLessonForm from "@/components/teacher/TeacherNewLessonForm";

type TeacherNewLessonPageProps = {
  params: Promise<{ slug: string }>;
};

export default async function TeacherNewLessonPage({ params }: TeacherNewLessonPageProps) {
  await requireTeacher();
  const { slug } = await params;

  return <TeacherNewLessonForm slug={slug} />;
}
