21 lines
598 B
TypeScript
21 lines
598 B
TypeScript
import {
|
|
getPartialsConfig,
|
|
makePartials,
|
|
} from "$root/defaults/makePartials.tsx";
|
|
import { FreshContext } from "$fresh/server.ts";
|
|
import { State } from "$root/defaults/interfaces.ts";
|
|
import MobilityOverview from "../../(_islands)/MobilityOverview.tsx";
|
|
|
|
// deno-lint-ignore require-await
|
|
async function Overview(
|
|
_request: Request,
|
|
context: FreshContext<State>,
|
|
) {
|
|
const numEtud = Number(context.params.numEtud);
|
|
return <MobilityOverview initialNumEtud={numEtud} />;
|
|
}
|
|
|
|
export { Overview as Page };
|
|
export const config = getPartialsConfig();
|
|
export default makePartials(Overview);
|