import { FreshContext } from "$fresh/server.ts";
import { AuthenticatedState } from "$root/defaults/interfaces.ts";
import EditStudents from "../(_islands)/EditStudents.tsx";

// deno-lint-ignore require-await
export default async function EditPage(
  _request: Request,
  context: FreshContext<AuthenticatedState>,
) {
  const numEtud = Number(context.params.numEtud);
  return <EditStudents numEtud={numEtud} />;
}
