23 lines
554 B
TypeScript
23 lines
554 B
TypeScript
import type { Metadata } from "next";
|
|
import SiteShell from "@/components/SiteShell";
|
|
import DigitalLessonClient from "@/components/DigitalLessonClient";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "课程 · nomadro 学院",
|
|
};
|
|
|
|
export default async function DigitalLessonPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ m: string; l: string }>;
|
|
}) {
|
|
const { m, l } = await params;
|
|
const mi = Number(m);
|
|
const li = Number(l);
|
|
return (
|
|
<SiteShell showFooter>
|
|
<DigitalLessonClient moduleIndex={mi} lessonIndex={li} />
|
|
</SiteShell>
|
|
);
|
|
}
|