12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
import { mondayOf } from "@/lib/menu";
|
|
import WeekEditor from "@/components/WeekEditor";
|
|
|
|
export default async function InternPage({
|
|
searchParams,
|
|
}: {
|
|
searchParams: Promise<{ woche?: string }>;
|
|
}) {
|
|
const { woche } = await searchParams;
|
|
return <WeekEditor monday={mondayOf(woche)} />;
|
|
}
|